From 50e6ff99285c89ba0cd1efb210f66ceb50069c58 Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Fri, 6 May 2011 17:44:35 +0100 Subject: [PATCH] removing position of nodes deeper than 2 for Original layout --- .../javascript/layoutManagers/OriginalLayoutManager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js b/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js index 93ae71f4..38f86214 100644 --- a/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js +++ b/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js @@ -41,6 +41,13 @@ mindplot.layoutManagers.OriginalLayoutManager = mindplot.layoutManagers.BaseLayo maxOrder=order; } result[order] = child; + + //remove position for all childs in depth >1 + var parent = node.getParent(); + if(core.Utils.isDefined(parent)){ + child._position = null; + child._finalPosition = null; + } } } nodesByOrder=null;