From 0c8a2915e8c1cb35658d88eded2e1095c6775bc6 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 26 Jun 2010 17:10:13 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E3=82=8A=E7=95=B3=E3=81=BE=E3=82=8C?= =?UTF-8?q?=E3=81=9F=E3=82=BF=E3=83=96=E3=82=92=E3=81=9D=E3=81=AE=E3=81=BE?= =?UTF-8?q?=E3=81=BEpinTab=E3=81=99=E3=82=8B=E3=81=A8=E8=A6=8B=E3=81=88?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=BF=E3=83=96=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=97=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= 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@6752 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index ae8c5bce..666d9df3 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -203,17 +203,23 @@ TreeStyleTabBrowser.prototype = { onPinTab : function TSTBrowser_onPinTab(aTab) { var parentTab = this.getParentTab(aTab); + + if (!parentTab) + this.collapseExpandSubtree(aTab, false); + this.getChildTabs(aTab).reverse().forEach( parentTab ? function(aChildTab) { this.attachTabTo(aChildTab, parentTab, { - dontExpand : true, - dontMove : true + dontExpand : true, + dontMove : true }); } : this.partTab, this); this.partTab(aTab); + + this.collapseExpandTab(aTab, false); }, onUnpinTab : function TSTBrowser_onUnpinTab(aTab)