From b21590525dd5388fa7bc9bbe4d4b34f9acb25777 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Wed, 27 Feb 2013 04:38:20 +0900 Subject: [PATCH] Don't insert needless margins between collapsed tabs. ( #466 ) Negative margins for collapsed tabs were unexpectedly inverted for tabs which have its "cannot be collapsed" parent tab. However, such tabs still can be collapsed if its root parent tab can be collapse its sub tree. --- modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index 1949e2be..d9a0657b 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -5785,7 +5785,7 @@ TreeStyleTabBrowser.prototype = { aTab.removeAttribute(this.kX_OFFSET); aTab.removeAttribute(this.kY_OFFSET); - if (!this.canCollapseSubtree(this.getParentTab(aTab))) + if (!this.canCollapseSubtree(this.getRootTab(aTab))) aCollapsed = false; aTab.setAttribute(this.kCOLLAPSING_PHASE, aCollapsed ? this.kCOLLAPSING_PHASE_TO_BE_COLLAPSED : this.kCOLLAPSING_PHASE_TO_BE_EXPANDED );