Skip to content

Commit 93523a5

Browse files
author
adumesny
committed
fixed cellHeight() check for no-op return
the code that checked for cell height and unit being the same was incorrect. Testing Done: calling this should be no-op, but wasn't this.grid.cellHeight( this.grid.cellHeight() );
1 parent 10e141e commit 93523a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@
16101610
}
16111611
var heightData = Utils.parseHeight(val);
16121612

1613-
if (this.opts.cellHeightUnit === heightData.heightUnit && this.opts.height === heightData.height) {
1613+
if (this.opts.cellHeightUnit === heightData.unit && this.opts.cellHeight === heightData.height) {
16141614
return ;
16151615
}
16161616
this.opts.cellHeightUnit = heightData.unit;

0 commit comments

Comments
 (0)