Skip to content

Resizing window below minWidth doesn't prevent dragging and resizing #593

Closed
@graemechapman

Description

@graemechapman

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/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions