Skip to content

Commit 4774597

Browse files
committed
fix: recalculate grid width when adding widgets
1 parent 7c1453c commit 4774597

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jquery.gridster.js

+3
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@
257257
this.set_widget_min_size($w, min_size);
258258
}
259259

260+
this.set_dom_grid_width();
260261
this.set_dom_grid_height();
261262

263+
this.drag_api.set_limits(this.container_width);
264+
262265
return $w.fadeIn();
263266
};
264267

0 commit comments

Comments
 (0)