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
When gridstack is initialised below the minWidth value, the grid items have classes ui-draggable-disabled ui-resizable-disabled and cannot be dragged or resized. If the window is resized to above the min width, these classes are removed and the drag and resize functionality is restored.
But, when the window is resized from a larger size to below the minWidth, these classes are not re-applied, and so resizing and dragging is not prevented. Although dragging has no visible effect, changes are still made to the attributes, which can be seen in dev tools or by enlarging the window, and the change event is triggered.
@graemechapman Looks like this was something I broke some time ago. I've run a test with the change and it works for me. Check out the develop branch and let me know if you're still seeing a problem.
When gridstack is initialised below the minWidth value, the grid items have classes
ui-draggable-disabled ui-resizable-disabled
and cannot be dragged or resized. If the window is resized to above the min width, these classes are removed and the drag and resize functionality is restored.But, when the window is resized from a larger size to below the minWidth, these classes are not re-applied, and so resizing and dragging is not prevented. Although dragging has no visible effect, changes are still made to the attributes, which can be seen in dev tools or by enlarging the window, and the change event is triggered.
This issue can be replicated by resizing the browser window on the demo page http://troolee.github.io/gridstack.js/
The text was updated successfully, but these errors were encountered: