Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd76a03 commit ed67c2cCopy full SHA for ed67c2c
gridstack.js
@@ -368,7 +368,8 @@
368
369
this.container.addClass(this.opts._class);
370
this._styles = Utils.create_stylesheet();
371
- this._styles._max = 0;
+ if (this._styles != null)
372
+ this._styles._max = 0;
373
374
this.grid = new GridStackEngine(this.opts.width, function (nodes) {
375
var max_height = 0;
@@ -449,6 +450,10 @@
449
450
};
451
452
GridStack.prototype._update_styles = function (max_height) {
453
+ if (this._styles == null) {
454
+ return;
455
+ }
456
+
457
var prefix = '.' + this.opts._class + ' .' + this.opts.item_class;
458
459
if (typeof max_height == 'undefined') {
0 commit comments