Fix resize/move issue in one column mode
Calling resizable() and movable() with 'true' no longer makes nodes resizable/movable in one column mode, fixes 158.
This commit is contained in:
parent
a780a58511
commit
231bc8ce65
1 changed files with 4 additions and 2 deletions
|
|
@ -700,6 +700,7 @@
|
|||
};
|
||||
|
||||
GridStack.prototype.resizable = function (el, val) {
|
||||
var self = this;
|
||||
el = $(el);
|
||||
el.each(function (index, el) {
|
||||
el = $(el);
|
||||
|
|
@ -709,7 +710,7 @@
|
|||
}
|
||||
|
||||
node.no_resize = !(val || false);
|
||||
if (node.no_resize) {
|
||||
if (node.no_resize || self._is_one_column_mode()) {
|
||||
el.resizable('disable');
|
||||
}
|
||||
else {
|
||||
|
|
@ -720,6 +721,7 @@
|
|||
};
|
||||
|
||||
GridStack.prototype.movable = function (el, val) {
|
||||
var self = this;
|
||||
el = $(el);
|
||||
el.each(function (index, el) {
|
||||
el = $(el);
|
||||
|
|
@ -729,7 +731,7 @@
|
|||
}
|
||||
|
||||
node.no_move = !(val || false);
|
||||
if (node.no_move) {
|
||||
if (node.no_move || self._is_one_column_mode()) {
|
||||
el.draggable('disable');
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue