gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Drag and drop a widget on top of a locked widget

Open rsalcedo6 opened this issue 3 years ago • 3 comments

Subject of the issue

It is possible to drag one item and drop it such that it overlaps with a locked widget.

Your environment

GridStack 9.3.0 Windows 10 Chrome browser

Steps to reproduce

Please check out the jsfiddle. There are reproduction steps and grid items to reproduce https://jsfiddle.net/richsalcedo6/c142owne/

Expected behavior

I would expect that the drop would not be possible

rsalcedo6 avatar Oct 15 '23 05:10 rsalcedo6

good demo. you'll notice 3 & 4 cannot be placed on the locked one, but when moving 2 it does multiple collision and the logic fails there. complex case.

adumesny avatar Oct 15 '23 14:10 adumesny

good demo.

Thanks!

it does multiple collision and the logic fails there.

I spent some time looking at the code last night seeing if I could find where the issue occurs. It was my first time in the code base so it's very unfamiliar to me. I will help as much as I can.

rsalcedo6 avatar Oct 15 '23 15:10 rsalcedo6

likely a hard one to fix unless you know the code and side effects... might be best to donate to have me fix it and unlikely I will do this corner case otherwise...

adumesny avatar Oct 15 '23 16:10 adumesny