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.03k stars 1.2k forks source link

Fixed issue where widget position would be overwritten on gridmap #361

Closed cpascu closed 7 years ago

cpascu commented 10 years ago

This fixes an issue where widget position would be overwritten on gridmap inside add_faux_cell ().

To reproduce add these widgets in the following order:

gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2, 1, 1, 2);
gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2, 1, 1, 3);
gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2, 1, 1, 1);

The grid wrapper will only wrap around the 3rd element, with the first two overflowing. It's easiest to see by adding some background colours to the elements and wrapper.

rgomesf commented 10 years ago

Thanks. I was having the same problem!