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
I realized useWindowSize returns the window's innerWidth which includes the scrollbar's width, if present, but also that I could use useScrollbarWidth to subtract it.
Why not add an innerWidth (and innerHeight) value to useWindowSize? It can be fetched using window.document.body.clientWidth.
The text was updated successfully, but these errors were encountered:
I realized
useWindowSize
returns the window'sinnerWidth
which includes the scrollbar's width, if present, but also that I could useuseScrollbarWidth
to subtract it.Why not add an
innerWidth
(andinnerHeight
) value touseWindowSize
? It can be fetched usingwindow.document.body.clientWidth
.The text was updated successfully, but these errors were encountered: