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
Layout breaks when grid is initialized in one column through breakpoints with makeWidget(). Both the order is wrong and when resizing, it doesnt properly restore the 12 column layout.
Your environment
version of gridstack.js - 12.2.1
which browser/OS: Firefox/Windows
Steps to reproduce
https://jsfiddle.net/f3159znr/3/
Size output window down so its smaller than the breakpoint, then reload and resize it so its larger than the breakpoint
one-column.mp4
Expected behavior
Grid should behave like a grid initialized with 12 columns:
Subject of the issue
Layout breaks when grid is initialized in one column through breakpoints with makeWidget(). Both the order is wrong and when resizing, it doesnt properly restore the 12 column layout.
Your environment
Steps to reproduce
https://jsfiddle.net/f3159znr/3/
Size output window down so its smaller than the breakpoint, then reload and resize it so its larger than the breakpoint
one-column.mp4
Expected behavior
Grid should behave like a grid initialized with 12 columns:
normal.mp4
I created a PR with a possible fix here: #3072