Skip to content

Commit

Permalink
fix(overflow-menu): use offsetWidth, offsetHeight to compute menu…
Browse files Browse the repository at this point in the history
… dimensions (#1913)
  • Loading branch information
Sahasrara authored Feb 25, 2024
1 parent c6af8bd commit 2404244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OverflowMenu/OverflowMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
}
if (open) {
const { width, height } = buttonRef.getBoundingClientRect();
const width = buttonRef.offsetWidth;
const height = buttonRef.offsetHeight;
buttonWidth = width;
Expand Down

0 comments on commit 2404244

Please sign in to comment.