mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(overflow-menu): use offsetWidth
, offsetHeight
to compute menu dimensions (#1913)
This commit is contained in:
parent
c6af8bdafe
commit
2404244221
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