Commit aec1135b authored by Dylan Weiss's avatar Dylan Weiss
Browse files

Fixes break from f20fb331. When initializing widgets, they now check to see if...

Fixes break from f20fb331. When initializing widgets, they now check to see if staticGrid is set. Fixes `staticGrid` option on grid.
parent e392da98
......@@ -1218,11 +1218,11 @@
resize: dragOrResize
});
if (node.noMove || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableDrag) {
if (node.noMove || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableDrag || this.opts.staticGrid) {
this.dd.draggable(el, 'disable');
}
if (node.noResize || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableResize) {
if (node.noResize || (this._isOneColumnMode() && !self.opts.disableOneColumnMode) || this.opts.disableResize || this.opts.staticGrid) {
this.dd.resizable(el, 'disable');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment