Solved issue when overlapping a free node to another branch

This commit is contained in:
Gonzalo Bellver
2012-03-06 15:53:22 -03:00
parent 9f4c928d13
commit dc4f47ab7a
3 changed files with 44 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ mindplot.layout.AbstractBasicSorter = new Class({
_computeChildrenHeight : function(treeSet, node, heightCache) {
var height = node.getSize().height + (this._getVerticalPadding() * 2); // 2* Top and down padding;
height += Math.abs(node.getFreeDisplacement().y);
var result;
var children = treeSet.getChildren(node);