Commit f1a407b5 authored by d's avatar d
Browse files

Fixes #593.

parent 8e489855
......@@ -509,6 +509,7 @@ Changes
#### v0.3.0-dev (Development Version)
- prevent dragging/resizing in oneColumnMode ([#593](https://github.com/troolee/gridstack.js/issues/593)).
- add oneColumnModeClass option to grid.
- remove 768px CSS styles, moved to grid-stack-one-column-mode class.
- add max-width override on grid-stck-one-column-mode ([#462](https://github.com/troolee/gridstack.js/issues/462)).
......
This diff is collapsed.
......@@ -714,12 +714,8 @@
if (self.opts.staticGrid) {
return;
}
if (node.noMove || self.opts.disableDrag) {
self.dd.draggable(node.el, 'disable');
}
if (node.noResize || self.opts.disableResize) {
self.dd.resizable(node.el, 'disable');
}
self.dd.draggable(node.el, 'disable');
self.dd.resizable(node.el, 'disable');
node.el.trigger('resize');
});
......
This diff is collapsed.
This diff is collapsed.
......@@ -714,12 +714,8 @@
if (self.opts.staticGrid) {
return;
}
if (node.noMove || self.opts.disableDrag) {
self.dd.draggable(node.el, 'disable');
}
if (node.noResize || self.opts.disableResize) {
self.dd.resizable(node.el, 'disable');
}
self.dd.draggable(node.el, 'disable');
self.dd.resizable(node.el, 'disable');
node.el.trigger('resize');
});
......
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