metafizzy / packery

:bento: Gapless, draggable grid layouts
https://packery.metafizzy.co
4.13k stars 315 forks source link

How to prevent grid size from expanding when dragging an item outside of its current dimensions? #549

Open GirkovArpa opened 4 years ago

GirkovArpa commented 4 years ago

Test case: https://packery.metafizzy.co/

In the demo you can keep growing the grid height as long as you keep stacking items on top of each other. I want to prevent this and only allow them to be dragged and dropped within the available space.

kedor89 commented 3 years ago

+1

jagruti-solanki23 commented 3 years ago

Hello,

I faced the same issue. But depending on the grid that I want, I reset the layout after dragging. Ex: https://codepen.io/jagruti23/pen/vYmOVVo

chevas commented 1 year ago

+1