Skip to content

Commit 3653474

Browse files
authored
Merge pull request #870 from radiolips/master
Revert #672
2 parents 2dc5bad + fabfb77 commit 3653474

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gridstack.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,14 +974,14 @@
974974
if (typeof maxHeight == 'undefined') {
975975
maxHeight = this._styles._max;
976976
}
977-
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
978-
return ;
979-
}
980977
this._initStyles();
981978
this._updateContainerHeight();
982979
if (!this.opts.cellHeight) { // The rest will be handled by CSS
983980
return ;
984981
}
982+
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
983+
return ;
984+
}
985985

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

0 commit comments

Comments
 (0)