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
So it doesn't, does it! I am guessing this happens because entering full screen doesn't trigger a resize event (which it probably should). So the solution will revolve around that thought.
First i want to say that codepen demo is outdated.
I've tested code from github too and there is similar error. Resize event is triggering correctly but calculation of available space is wrong because check function is called with no delay. Getting instant state is executed before menu items completely render. Debouncing check and resize event handling can improve performance too.
When you open demo (https://codepen.io/lukejacksonn/pen/BowbWE) for example in 700px wide browser window and then you maximize window it doesn't render correctly.
700px browser window
Fullscreen mode (1920x1080)
The text was updated successfully, but these errors were encountered: