Skip to content

Commit c920420

Browse files
committed
Always create the styles to avoid an error that prevented the height and top
being added to the inline style in Firefox.
1 parent c1c4ff8 commit c920420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gridstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,9 @@
937937

938938
if (typeof maxHeight == 'undefined') {
939939
maxHeight = this._styles._max;
940-
this._initStyles();
941-
this._updateContainerHeight();
942940
}
941+
this._initStyles();
942+
this._updateContainerHeight();
943943
if (!this.opts.cellHeight) { // The rest will be handled by CSS
944944
return ;
945945
}

0 commit comments

Comments
 (0)