Skip to content

Commit

Permalink
bug fix: keep this._styles._max increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
datou3600 committed May 24, 2017
1 parent fa4f2d0 commit a38d78e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,14 +947,14 @@
if (typeof maxHeight == 'undefined') {
maxHeight = this._styles._max;
}
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
return ;
}
this._initStyles();
this._updateContainerHeight();
if (!this.opts.cellHeight) { // The rest will be handled by CSS
return ;
}
if (this._styles._max !== 0 && maxHeight <= this._styles._max) {
return ;
}

if (!this.opts.verticalMargin || this.opts.cellHeightUnit === this.opts.verticalMarginUnit) {
getHeight = function(nbRows, nbMargins) {
Expand Down

2 comments on commit a38d78e

@cuijian-dexter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i solved my problem. Thank you very much.

@jibboo
Copy link

@jibboo jibboo commented on a38d78e Jun 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solved my issue of mass overlapping on first row when dragging/resizing certain widgets

Please sign in to comment.