Skip to content

Commit fabfb77

Browse files
committed
Revert PR #672. Need to resolve this in the future, but for now, this needs to be reverted so that cellHeight can be used.
1 parent 3d3a7d9 commit fabfb77

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)