Closed thoma202 closed 11 years ago
I think this is caused by the auto placement from gridster. Btw you need HTML Markup in the gridster.add_widget("
So, when the grid registers the widget, you need to change the "data-col"-attribute. Gridster.js does the rest for you (replacing immediatly)
Code would be like:
var gridster = $(".gridster ul").gridster().data('gridster'); $('.trigger').click(function() { var e = gridster.add_widget('
Untested, but it should work, Have a nice evening from Austria!
Hi,
I have same bugs.
With the settings, i can change the size widget. After my resize the gridmap is different.
before :
after :
Fixed here 195295be
Hi,
I tried this on the demo version.
Follow this : $widget = gridster.add_widget('
', 4, 3) $widget =gridster.resize_widget($widget , 6, 1) gridster.add_widget('', 1, 1); gridster.add_widget('', 1, 1); gridster.add_widget('', 1, 1);When you do that, then the grid get broken and new widget go to the right and not as expected in the grid !