From e3a5626b21ac8b906638bed9eb96aca5fadd26d8 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Wed, 7 Mar 2012 11:41:10 -0800 Subject: Fixed: Collapsed panels would collapse panels below Signed-off-by: Armen Kesablyan --- js/panels/PanelContainer.reel/PanelContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/panels') diff --git a/js/panels/PanelContainer.reel/PanelContainer.js b/js/panels/PanelContainer.reel/PanelContainer.js index 8cc303dc..3da9b44c 100755 --- a/js/panels/PanelContainer.reel/PanelContainer.js +++ b/js/panels/PanelContainer.reel/PanelContainer.js @@ -133,7 +133,9 @@ exports.PanelContainer = Montage.create(Component, { var childrensMinHeights = (len * 26); if (panelActivated) { - childrensMinHeights+= panelActivated.minHeight -26; + if (!panelActivated.collapsed) { + childrensMinHeights+= panelActivated.minHeight -26; + } } for(var i = 0; i < len; i++) { -- cgit v1.2.3