vue3-dragable-grid-layout
vue3-dragable-grid-layout copied to clipboard
Prevent from creating a row
My grid-layout component contains the prop maxRows set to 2. However, when I move around with my grid-item and collide it with other grid-item components, sometimes one of them slides to a third row and I cannot seem to bound these items to the layout.
Is there a workaround for this?
Thank you
Try using the property preventCollision set to true; this worked for me.
The thing is, every item is in a closed and filled space, they only swap with each other inside the layout.