From b1568bd66c18003cdab2fd2a3ae20994a44da194 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 16 Sep 2010 11:00:36 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E5=81=B4=E3=81=AB=E5=BC=B7?= =?UTF-8?q?=E3=81=8F=E5=80=92=E3=81=97=E3=81=9F=E5=AE=9F=E8=A3=85=E3=81=AB?= 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@7243 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 85bca642..2456ef3c 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2548,7 +2548,24 @@ TreeStyleTabBrowser.prototype = { updateTreeByTabVisibility : function TSTBrowser_updateTreeByTabVisibility(aChangedTabs) { aChangedTabs = aChangedTabs || []; + var tabs = this.getAllTabsArray(this.mTabBrowser); + aChangedTabs.forEach(function(aTab) { + this.collapseExpandTab(aTab, false, true); + if (aTab.hidden) { + this.partAllChildren(aTab, { + behavior : this.getParentTab(aTab) ? + this.getTreePref('closeParentBehavior') : + this.getTreePref('closeRootBehavior') + }); + this.partTab(aTab); + } + else { + this.attachTabFromPosition(aTab, tabs.length-1); + } + }, this); + +/* var tabs = this.getAllTabsArray(this.mTabBrowser); tabs.reverse().forEach(function(aTab) { var parent = this.getParentTab(aTab); @@ -2568,6 +2585,7 @@ TreeStyleTabBrowser.prototype = { if (!aTab.hidden && aChangedTabs.indexOf(aTab) > -1) this.attachTabFromPosition(aTab, tabs.length-1); }, this); +*/ }, onTabRestoring : function TSTBrowser_onTabRestoring(aEvent)