Skip to content

Commit

Permalink
Merge c309856 into ba1ee25
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoradei committed Feb 29, 2016
2 parents ba1ee25 + c309856 commit c2775d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -1417,10 +1417,13 @@
this.grid.commit();
};

GridStack.prototype.setGridWidth = function(gridWidth) {
GridStack.prototype.setGridWidth = function(gridWidth,doNotPropagate) {
this.container.removeClass('grid-stack-' + this.opts.width);
this._updateNodeWidths(this.opts.width, gridWidth);
if (doNotPropagate !== true) {
this._updateNodeWidths(this.opts.width, gridWidth);
}
this.opts.width = gridWidth;
this.grid.width = gridWidth;
this.container.addClass('grid-stack-' + gridWidth);
};

Expand Down

0 comments on commit c2775d3

Please sign in to comment.