vue3-dragable-grid-layout icon indicating copy to clipboard operation
vue3-dragable-grid-layout copied to clipboard

Prevent from creating a row

Open lvdd-rbl opened this issue 1 year ago • 2 comments

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

lvdd-rbl avatar Feb 06 '24 09:02 lvdd-rbl

Try using the property preventCollision set to true; this worked for me.

palonva avatar Feb 19 '24 15:02 palonva

The thing is, every item is in a closed and filled space, they only swap with each other inside the layout.

lvdd-rbl avatar Feb 19 '24 15:02 lvdd-rbl