ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.04k stars 1.2k forks source link

Max Rows #479

Open mwmwmw opened 9 years ago

mwmwmw commented 9 years ago

I'm looking for a way to contain my grid to a maximum number of elements and rows.

I notice there is a max-cols setting, but no max-rows setting.

I also notice that gridster will constrain drag and drop along the X axis but not along the Y axis.

Is there a configuration I can use to do this, or should I be looking into some of the event functions to handle this?

Great library, works really well.

mwmwmw commented 9 years ago

I think a better way to put this would be..

I want to make it so that my grid has a fixed number of pieces, and when I move pieces around, instead of expanding the grid, I want the piece being dragged over to move into the space where the piece is from/empty space.

Does that make sense?

omidify commented 9 years ago

I am also interested in knowing if there is anything in the works on this one. :+1:

chrisritter commented 8 years ago

Any way to do this?

RaghavRamesh commented 8 years ago

Check this duplicate #500