mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
flip the menu direction to top if menu's height is bigger than the parent offset
This commit is contained in:
parent
43b3029d50
commit
f12dc707a6
6 changed files with 40 additions and 2 deletions
6
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
6
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
|
@ -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<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue