Siblings correctly sorted by order

This commit is contained in:
Gonzalo Bellver
2012-01-10 19:35:52 -03:00
parent a98f8a898a
commit 765162d2a5
3 changed files with 23 additions and 28 deletions

View File

@@ -132,9 +132,8 @@ mindplot.nlayout.SymmetricSorter = new Class({
// Compute heights ...
var heights = children.map(function(child) {
return {id:child.getId(), position: child.getPosition(), height: this._computeChildrenHeight(treeSet, child)};
}, this);
return {id:child.getId(), order:child.getOrder(), position: child.getPosition(), height: this._computeChildrenHeight(treeSet, child)};
}, this).reverse();
// Compute the center of the branch ...
var totalHeight = 0;