- 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

@@ -112,7 +112,7 @@ mindplot.layout.OriginalLayout = new Class({
var offset = offsetById[child.getId()];
var childFreeDisplacement = child.getFreeDisplacement();
var direction = node.getSorter().getDirection(this._treeSet, child);
var direction = node.getSorter().getChildDirection(this._treeSet, child);
if ((direction > 0 && childFreeDisplacement.x < 0) || (direction < 0 && childFreeDisplacement.x > 0)) {
child.resetFreeDisplacement();