Locked items did not respected their positions when external items were dropped.
This commit is contained in:
parent
efb49d26a2
commit
5e71f4bd0d
1 changed files with 6 additions and 6 deletions
|
|
@ -715,6 +715,7 @@
|
|||
node._added = true;
|
||||
|
||||
node.el = el;
|
||||
node.autoPosition = true;
|
||||
node.x = x;
|
||||
node.y = y;
|
||||
self.grid.cleanNodes();
|
||||
|
|
@ -732,14 +733,13 @@
|
|||
node._beforeDragX = node.x;
|
||||
node._beforeDragY = node.y;
|
||||
|
||||
self._updateContainerHeight();
|
||||
} else {
|
||||
if (!self.grid.canMoveNode(node, x, y)) {
|
||||
return;
|
||||
}
|
||||
self.grid.moveNode(node, x, y);
|
||||
self._updateContainerHeight();
|
||||
}
|
||||
if (!self.grid.canMoveNode(node, x, y)) {
|
||||
return;
|
||||
}
|
||||
self.grid.moveNode(node, x, y);
|
||||
self._updateContainerHeight();
|
||||
};
|
||||
|
||||
$(self.container).droppable({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue