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
fix: use offsetWidth/offsetHeight instead of getComputedStyle for clone dimensions
getComputedStyle().width/height can return empty strings during the
initial render cycle (before styles are fully computed), causing the
measurement clone to have 0x0 dimensions. offsetWidth/offsetHeight
are more reliable as they return the layout dimensions immediately.
0 commit comments