- Fix position of isolated nodes ...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-09 18:52:59 -03:00
parent 39c2b37a1f
commit 890364f13c
7 changed files with 61 additions and 58 deletions

View File

@@ -58,8 +58,10 @@ mindplot.layout.LayoutManager = new Class({
$assert($defined(position.y), "y can not be null");
var node = this._treeSet.find(id);
node.setFree(true);
node.setFreeDisplacement({x:position.x - node.getPosition().x, y:position.y - node.getPosition().y});
// @Todo: this should not be here. This is broking the isolated node support...
// node.setFree(true);
// node.setFreeDisplacement({x:position.x - node.getPosition().x, y:position.y - node.getPosition().y});
node.setPosition(position);
},
connectNode: function(parentId, childId, order) {