You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useElementSize seems to ignore the provided option { box: 'border-box' } and instead still uses the content-box of the element.
The example shows how the lower box reports the same size as the upper one, even though it should be reporting the border-box sizing, which would be 250 x 200 (checked via chrome inspector).
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
useElementSize
seems to ignore the provided option{ box: 'border-box' }
and instead still uses the content-box of the element.The example shows how the lower box reports the same size as the upper one, even though it should be reporting the border-box sizing, which would be 250 x 200 (checked via chrome inspector).
Reproduction
https://stackblitz.com/edit/vitejs-vite-fxnszl/?file=src%2FApp.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: