diff --git a/dist/gridstack.js b/dist/gridstack.js index 9b338a7..181fcd5 100644 --- a/dist/gridstack.js +++ b/dist/gridstack.js @@ -762,6 +762,7 @@ }; GridStack.prototype.resizable = function(el, val) { + var self = this; el = $(el); el.each(function(index, el) { el = $(el); @@ -771,7 +772,7 @@ } node.no_resize = !(val || false); - if (node.no_resize) { + if (node.no_resize || self._is_one_column_mode()) { el.resizable('disable'); } else { @@ -782,6 +783,7 @@ }; GridStack.prototype.movable = function(el, val) { + var self = this; el = $(el); el.each(function(index, el) { el = $(el); @@ -791,7 +793,7 @@ } node.no_move = !(val || false); - if (node.no_move) { + if (node.no_move || self._is_one_column_mode()) { el.draggable('disable'); } else {