Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed67c2c

Browse files
committed
update gridstack
1 parent fd76a03 commit ed67c2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gridstack.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@
368368

369369
this.container.addClass(this.opts._class);
370370
this._styles = Utils.create_stylesheet();
371-
this._styles._max = 0;
371+
if (this._styles != null)
372+
this._styles._max = 0;
372373

373374
this.grid = new GridStackEngine(this.opts.width, function (nodes) {
374375
var max_height = 0;
@@ -449,6 +450,10 @@
449450
};
450451

451452
GridStack.prototype._update_styles = function (max_height) {
453+
if (this._styles == null) {
454+
return;
455+
}
456+
452457
var prefix = '.' + this.opts._class + ' .' + this.opts.item_class;
453458

454459
if (typeof max_height == 'undefined') {

0 commit comments

Comments
 (0)