From 60ab4c7f5d61ca37653482d9cd6d4662dcd6d448 Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Sat, 16 Apr 2011 15:52:21 +0100 Subject: [PATCH] fixing original layout bugs --- mindplot/src/main/javascript/FixedDistanceBoard.js | 7 ++++++- mindplot/src/main/javascript/NodeModel.js | 2 +- mindplot/src/main/javascript/NoteModel.js | 2 +- .../layoutManagers/OriginalLayoutManager.js | 12 ++++++++---- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/mindplot/src/main/javascript/FixedDistanceBoard.js b/mindplot/src/main/javascript/FixedDistanceBoard.js index f7055a32..0f5f1e07 100644 --- a/mindplot/src/main/javascript/FixedDistanceBoard.js +++ b/mindplot/src/main/javascript/FixedDistanceBoard.js @@ -199,7 +199,12 @@ mindplot.FixedDistanceBoard.prototype.repositionate = function() var lowerLimit; if (entries.length > 0) { - var topic = entries[0].getTopic(); + var l = 0; + for(l=0; lmaxOrder) @@ -40,7 +44,7 @@ mindplot.layoutManagers.OriginalLayoutManager = mindplot.layoutManagers.BaseLayo } } nodesByOrder=null; - return result; + return node.getTopicType()!=mindplot.NodeModel.CENTRAL_TOPIC_TYPE?result:children; }, _nodeResizeEvent:function(node){