-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hi, I'm using this setup
- compactType = "horizontal"
- preventCollision = "true"
I would like that by moving element 8 above element 11, it positions itself between element 5 and element 11 moving the whole row down (both element 11 and element 7 move down)
I would like to have this functionality without giving up the other functionality given by the attributes compactType = "horizontal"
and preventCollision = "true"
. Or in any case I would need the lines to be locked: if I move an element up it must be possible to insert it only if there is space in that line otherwise it creates a new line. Same reasoning below if I move the element up the elements of the rows down shouldn't move. (Items in a row must be locked to that row and not move to other rows)
I thought of implementing this by catching the "dragStarted", "dragEnded" events and updating the layout manually, but the y of the element doesn't change when you drop it on another element (with preventCollision="true"
) and there is no event that is triggered on each change of x/y (dragging)
Surely there is a better way to implement this within the library
Thank you