diff --git a/mindplot/src/main/javascript/layout/AbstractBasicSorter.js b/mindplot/src/main/javascript/layout/AbstractBasicSorter.js index e78d6af7..b8c71926 100644 --- a/mindplot/src/main/javascript/layout/AbstractBasicSorter.js +++ b/mindplot/src/main/javascript/layout/AbstractBasicSorter.js @@ -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); diff --git a/mindplot/src/test/javascript/static/layout.html b/mindplot/src/test/javascript/static/layout.html index f71c5484..68288fd0 100644 --- a/mindplot/src/test/javascript/static/layout.html +++ b/mindplot/src/test/javascript/static/layout.html @@ -178,6 +178,10 @@