mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Make overflow menu account for transform scale
This commit is contained in:
parent
17f4c49519
commit
3aea92f4c6
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (open) {
|
if (open) {
|
||||||
const { width, height } = buttonRef.getBoundingClientRect();
|
const width = buttonRef.offsetWidth;
|
||||||
|
const height = buttonRef.offsetHeight;
|
||||||
|
|
||||||
buttonWidth = width;
|
buttonWidth = width;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue