Add support for shink on collapsed nodes.

This commit is contained in:
Paulo Veiga
2012-01-11 23:30:26 -03:00
parent 51bc3e563a
commit ef2902d724
20 changed files with 76 additions and 87 deletions

View File

@@ -33,7 +33,7 @@ mindplot.nlayout.BalancedSorter = new Class({
var result;
var children = treeSet.getChildren(node);
if (children.length == 0) {
if (children.length == 0 || node.areChildrenShrunken()) {
result = height;
} else {
var childrenHeight = 0;