From 38afdda803fd8350e063f11bf0b4ce4e1070ea94 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 7 Apr 2009 17:19:30 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=9F?= =?UTF-8?q?=E5=BE=8C=E3=81=AE=E8=A1=A8=E7=A4=BA=E5=B4=A9=E3=82=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4069 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 925ef4df..d6a9b08d 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -888,6 +888,10 @@ TreeStyleTabBrowser.prototype = { }, 0); } } + + this.getTabsArray(b).forEach(function(aTab) { + this.updateTabCollapsed(aTab, aTab.getAttribute(this.kCOLLAPSED) == 'true', true); + }, this); }, destroy : function() @@ -3031,12 +3035,16 @@ TreeStyleTabBrowser.prototype = { this.collapseExpandTab(tabs[i], aCollapse); } }, - updateTabCollapsed : function(aTab, aCollapsed) + updateTabCollapsed : function(aTab, aCollapsed, aJustNow) { this.stopTabCollapseAnimation(aTab); var regexp = this.collapseRulesRegExp; - if (!this.isVertical || !this.animationEnabled) { + if ( + !this.isVertical || + !this.animationEnabled || + aJustNow + ) { aTab.setAttribute( 'style', aTab.getAttribute('style')