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

Adding widget dynamically doesn't map correctly when grister already initialized #381

Open vko-online opened 10 years ago

vko-online commented 10 years ago
  1. Initialize grister //gr = ul.gridster(widget_selector: 'li', options).data('gridster');
  2. Add widget //gr.add_widget(elm, attrs.sizex, attrs.sizey, attrs.col, attrs.row);

It maps gridster cords not correctly. So when dragging widget, other widgets behave not as expected, they pull down even if there is no collision

vieron commented 10 years ago

Please, follow these steps for submitting bug reports. Without a jsfiddle demo or similar it's not easy to reproduce issues.