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
Describe the bug
No matter what I do, using getBoundingClientRect will always return an object with its stats being 0.
To Reproduce
Just use this code here:
constel=document.createElement('div')el.style.width='16px'el.style.height='16px'el.style.margin='16px'el.style.padding='16px'document.body.appendChild(el)console.log(el.getBoundingClientRect())// returns a zero object
Expected behavior
It should not return a zero object like in browser.
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
OS: Windows 11
Version: 14.17.1
The text was updated successfully, but these errors were encountered:
Describe the bug
No matter what I do, using
getBoundingClientRect
will always return an object with its stats being 0.To Reproduce
Just use this code here:
Expected behavior
It should not return a zero object like in browser.
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
The text was updated successfully, but these errors were encountered: