From 7afc442824a971a403124f28f5e12255ef4c500e Mon Sep 17 00:00:00 2001 From: Gonzalo Bellver Date: Mon, 20 Aug 2012 19:49:19 -0300 Subject: [PATCH] Fixed commit distances on BalancedSorter --- mindplot/src/main/javascript/layout/BalancedSorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/layout/BalancedSorter.js b/mindplot/src/main/javascript/layout/BalancedSorter.js index 53cabe82..55b8d02a 100644 --- a/mindplot/src/main/javascript/layout/BalancedSorter.js +++ b/mindplot/src/main/javascript/layout/BalancedSorter.js @@ -70,7 +70,7 @@ mindplot.layout.BalancedSorter = new Class({ // No children? if (children.length == 0) { - return [order, {x:parent.getPosition().x + direction * (parent.getSize().width + mindplot.layout.BalancedSorter.INTERNODE_HORIZONTAL_PADDING * 2), y:parent.getPosition().y}]; + return [order, {x:parent.getPosition().x + direction * (parent.getSize().width / 2 + mindplot.layout.BalancedSorter.INTERNODE_HORIZONTAL_PADDING * 2), y:parent.getPosition().y}]; } // Try to fit within ...