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

Gridster not respecting saved positions #477

Open PdroCorrea opened 9 years ago

PdroCorrea commented 9 years ago

When i save the position Col, row, sizeX and SizeY, and try to load the table again with the serialize o creating the html manually again, gridster do not respect the position saved before and move the line to another row or column even if in the source the col or row is correct. Anyone has any ideas as for the why? Or anything that could avoid this issue?

Issue happens in any browser.

Than you

joshua-golub commented 9 years ago

You need to first sort the deserialized list using Gridster's sort_by_row_and_col_asc method. See Gridster's own example for how this is done.