Skip to content

Commit aec1135

Browse files
committed
Fixes break from f20fb33. When initializing widgets, they now check to see if staticGrid is set. Fixes staticGrid option on grid.
1 parent e392da9 commit aec1135

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
@@ -1218,11 +1218,11 @@
12181218
resize: dragOrResize
12191219
});
12201220

1221-
if (node.noMove || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableDrag) {
1221+
if (node.noMove || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableDrag || this.opts.staticGrid) {
12221222
this.dd.draggable(el, 'disable');
12231223
}
12241224

1225-
if (node.noResize || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableResize) {
1225+
if (node.noResize || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableResize || this.opts.staticGrid) {
12261226
this.dd.resizable(el, 'disable');
12271227
}
12281228

0 commit comments

Comments
 (0)