flip the menu direction to top if menu's height is bigger than the parent offset

This commit is contained in:
Bilux 2022-10-20 18:10:05 +01:00 committed by GitHub
commit f12dc707a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 2 deletions

View file

@ -75,6 +75,12 @@ export interface OverflowMenuProps
* @default null
*/
menuRef?: null | HTMLUListElement;
/**
* Obtain a reference to the trigger parent element
* @default null
*/
parentRef?: null | HTMLElement;
}
export default class OverflowMenu extends SvelteComponentTyped<