From c920420c329850422b9d22173b3f83712f42b1ed Mon Sep 17 00:00:00 2001 From: Carlos Llamacho Date: Wed, 8 Feb 2017 16:19:59 +0000 Subject: [PATCH] Always create the styles to avoid an error that prevented the height and top being added to the inline style in Firefox. --- src/gridstack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gridstack.js b/src/gridstack.js index 39d250a..4932ea7 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -937,9 +937,9 @@ if (typeof maxHeight == 'undefined') { maxHeight = this._styles._max; - this._initStyles(); - this._updateContainerHeight(); } + this._initStyles(); + this._updateContainerHeight(); if (!this.opts.cellHeight) { // The rest will be handled by CSS return ; }