From 069210783991879ad2c824aebb99194a44ebf15b Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Wed, 30 Mar 2011 09:40:39 +0100 Subject: [PATCH] fixing keyboard shortcut for adding siblings --- .../javascript/layoutManagers/OriginalLayoutManager.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js b/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js index 18e42d01..92dcab66 100644 --- a/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js +++ b/mindplot/src/main/javascript/layoutManagers/OriginalLayoutManager.js @@ -13,9 +13,11 @@ mindplot.layoutManagers.OriginalLayoutManager = mindplot.layoutManagers.BaseLayo mindplot.DragTopic.initialize(workSpace); }, _nodeResizeEvent:function(node){ - var size = node.getSize(); - if(!this._isCentralTopic(node)) - this.getTopicBoardForTopic(node).updateChildrenPosition(node,size.height/2); + if(this._isCentralTopic(node)){ + var size = node.getSize(); + if(!this._isCentralTopic(node)) + this.getTopicBoardForTopic(node).updateChildrenPosition(node,size.height/2); + } }, _NodeRepositionateEvent:function(node){ this.getTopicBoardForTopic(node).repositionate();