Skip to content

Commit 65accb4

Browse files
author
Alain Dumesny
committed
reverted #1047 (updating styles)
as it is causing cellheight() to fail (#1068) which is worse and more common than missing animation.
1 parent 7463cef commit 65accb4

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
@@ -1091,14 +1091,14 @@
10911091
maxHeight = this._styles._max;
10921092
}
10931093

1094-
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
1095-
return ;
1096-
}
10971094
this._initStyles();
10981095
this._updateContainerHeight();
10991096
if (!this.opts.cellHeight) { // The rest will be handled by CSS
11001097
return ;
11011098
}
1099+
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
1100+
return ;
1101+
}
11021102

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

0 commit comments

Comments
 (0)