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

grid init drawn incorrectly if min_rows is smaller than the height (in rows) of the first widget #445

Open ghost opened 9 years ago

ghost commented 9 years ago

We have a small Y value for base_dimensions, so that the y-resize is more granular. As a result, our widgets had a height larger (in rows) than the min_rows default value of 15. This caused the bottom-most element to always overlap the widget directly above it.

It was puzzling because removing/adding the first widget would fix the problem at runtime.

mattbryson commented 9 years ago

@wjbrownairtight did you get anywhere with this?

We have a similar issue - v small min base dimensions. Add a bunch of widgets, stacked on top of each other. Drag the top to the bottom. Re build it and grdister re draws the grid in a strange manner.

If you allow overlapping widgets from the DOM, then you can see that, like yours, the one dragged to the bottom gets repositioned over another one.

Just wondered if you found any more out on this ?