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
{{ message }}
Repository navigation
staticGrid: false - draggable zone overlays html content (?) #1581
Im using gridstack v 0.4.0 with sortable.js.
In Gridstack i have a widget with a list, sortable.js makes the list reorderable via drag and drop.
This works like a charm :-)
I updated to v 3.1.4. The grid works great, but my sortable.js list is not working.
After many tests I found out, that when i set the option setstatic to true the sortable works.
Now when i move the mouse over an element the mouse pointer turns into an input cursor.
If setstatic is set to false and i move the mouse over an element, the cursor remains.
Every widget has a header, draggable handle is set to the header class.
I think the draggable zone is set over the complete widget element and not only on the header, so the elements in the widget will be overwritten by the drag zone.
-> See Codepens
Activity
adumesny commentedon Jan 21, 2021
you might be right (header vs entire area). Did you try jq version and see if that works instead ?
LordKingPin commentedon Jan 21, 2021
jq version works:
https://codepen.io/LordKingPin2020/pen/vYXMaPB
H5 draggable by actual div handle
adumesny commentedon Jan 23, 2021
fixed in just released 3.1.5 - don't forget to donate if you find this lib useful!