gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
6.03k
stars
1.2k
forks
source link
If widget's data-row is greater 51 or the min_rows given to gridster's options, then gridster's CSS does not include styling for that row. #387
Open
donpinkus opened 10 years ago
I let users save their gridster by using serialize. This creates the json:
[{"col":1,"row":1,"size_x":13,"size_y":10}, {"col":14,"row":1,"size_x":13,"size_y":10}, {"col":1,"row":11,"size_x":21,"size_y":11}, {"col":1,"row":22,"size_x":13,"size_y":10}]
The strange thing is, when I use
gridster.add_widget(someHTML, size_x, size_y, col, row)
, the widgets collapse in the same column to row position 1.If I use min_rows, it prevents the collapsing, as long as the row position is within this minimum # of rows. Any ideas why this is required?