diff --git a/mindplot/src/main/javascript/layout/OriginalLayout.js b/mindplot/src/main/javascript/layout/OriginalLayout.js index b8b4064f..6c39ca74 100644 --- a/mindplot/src/main/javascript/layout/OriginalLayout.js +++ b/mindplot/src/main/javascript/layout/OriginalLayout.js @@ -157,7 +157,8 @@ mindplot.layout.OriginalLayout = new Class({ }, this); if (!sibling.isFree() || overlappingOccurs) { - this._treeSet.shiftBranchPosition(sibling, 0, node.getFreeDisplacement().y); + var sAmount = node.getFreeDisplacement().y; + this._treeSet.shiftBranchPosition(sibling, 0, sAmount); shiftedBranches.push(sibling); } }, this); @@ -167,14 +168,9 @@ mindplot.layout.OriginalLayout = new Class({ }); branchesToShift.forEach(function(branch) { - var overlappingOccurs = shiftedBranches.some(function(shiftedBranch) { - return this._branchesOverlap(shiftedBranch, branch, heightById); - }, this); - - if (overlappingOccurs) { - this._treeSet.shiftBranchPosition(branch, 0, node.getFreeDisplacement().y); - shiftedBranches.push(branch); - } + var bAmount = node.getFreeDisplacement().y; + this._treeSet.shiftBranchPosition(branch, 0, bAmount); + shiftedBranches.push(branch); last = branch; },this); }, diff --git a/mindplot/src/main/javascript/layout/SymmetricSorter.js b/mindplot/src/main/javascript/layout/SymmetricSorter.js index 56ae4cc3..b611b79f 100644 --- a/mindplot/src/main/javascript/layout/SymmetricSorter.js +++ b/mindplot/src/main/javascript/layout/SymmetricSorter.js @@ -176,6 +176,10 @@ mindplot.layout.SymmetricSorter = new Class({ toString:function() { return "Symmetric Sorter"; + }, + + _getVerticalPadding: function() { + return mindplot.layout.SymmetricSorter.INTERNODE_VERTICAL_PADDING; } }); diff --git a/mindplot/src/test/javascript/static/layout.html b/mindplot/src/test/javascript/static/layout.html index 68288fd0..49c8d415 100644 --- a/mindplot/src/test/javascript/static/layout.html +++ b/mindplot/src/test/javascript/static/layout.html @@ -181,7 +181,10 @@