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

resize_widget_dimensions() changes the layout #466

Open BuilderCoder opened 9 years ago

BuilderCoder commented 9 years ago

I use resize_widget_dimensions() to change the values of widget_base_dimensions and widget_margins after initialization. Doing this changes the layout drastically. For example, I have the following data-col values before changing the dimension <li data-row="1" data-col="1" data-sizex="3" data-sizey="2"/> <li data-row="1" data-col="8" data-sizex="8" data-sizey="2"/> After using resize_widget_dimensions() it automatically set the data-col value to subsequent value.

<li data-row="1" data-col="1" data-sizex="3" data-sizey="2"/> <li data-row="1" data-col="4" data-sizex="8" data-sizey="2"/>

And also after resizing, am not able to drag the widget to the end.