fix(overflow-menu): use offsetWidth, offsetHeight to compute menu dimensions (#1913)

This commit is contained in:
Eric Fulton 2024-02-25 10:21:54 -08:00 committed by GitHub
commit 2404244221
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;