Skip to content

Commit

Permalink
fix: recalculate grid width when adding widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
vieron committed Feb 7, 2014
1 parent 7c1453c commit 4774597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,11 @@
this.set_widget_min_size($w, min_size);
}

this.set_dom_grid_width();
this.set_dom_grid_height();

this.drag_api.set_limits(this.container_width);

return $w.fadeIn();
};

Expand Down

0 comments on commit 4774597

Please sign in to comment.