Fixed bug for predict in free positioning

This commit is contained in:
Gonzalo Bellver
2012-02-02 12:41:53 -03:00
parent a0b838a7a6
commit 7c3ffebc84
4 changed files with 14 additions and 17 deletions

View File

@@ -35,7 +35,7 @@ mindplot.layout.BalancedSorter = new Class({
(position.x >= parent.getPosition().x ? position.x : parent.getPosition().x) :
(position.x <= parent.getPosition().x ? position.x : parent.getPosition().x);
return {order:0, position:{x: xPos, y:position.y}};
return [0, {x: xPos, y:position.y}];
}
var rootNode = graph.getRootNode(parent);