From 39da73c256b921a839838990a4ae9a923baa736a Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 16 Sep 2010 04:05:12 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92?= =?UTF-8?q?=E5=8F=B3=E3=81=AB=E7=BD=AE=E3=81=84=E3=81=A6=E3=81=84=E3=81=A6?= =?UTF-8?q?=E3=80=81=E3=82=BF=E3=83=96=E3=81=8C1=E3=81=A4=E3=81=A0?= =?UTF-8?q?=E3=81=91=E3=81=AE=E6=99=82=E3=81=AB=E3=82=BF=E3=83=96=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=92=E8=87=AA=E5=8B=95=E7=9A=84=E3=81=AB=E9=9A=A0?= =?UTF-8?q?=E3=81=99=E8=A8=AD=E5=AE=9A=E3=81=AB=E3=81=97=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=82=8B=E6=99=82=E3=80=812=E3=81=A4=E7=9B=AE=E3=81=AE?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=92=E9=96=8B=E3=81=84=E3=81=9F=E5=BE=8C?= =?UTF-8?q?=E3=81=AB=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=8C=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E3=81=AB=E3=81=AF=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=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@7234 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 8c29afbb..54d46e75 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1286,10 +1286,15 @@ TreeStyleTabBrowser.prototype = { }, updateFloatingTabbarInternal : function TSTBrowser_updateFloatingTabbarInternal() { + if (this.splitter.collapsed || this.splitter.getAttribute('state') != 'collapsed') { + this._tabStripPlaceHolder.collapsed = + this.splitter.collapsed = + (this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1); + } + var strip = this.tabStrip; var tabContainerBox = this.getTabContainerBox(this.mTabBrowser); var positioned = false; - var collapsed = !this.splitter.collapsed && this.splitter.getAttribute('state') == 'collapsed'; var pos = this.currentTabbarPosition; if (pos != 'top' || this.mTabBrowser.getAttribute(this.kFIXED) != 'true') { @@ -1338,12 +1343,6 @@ TreeStyleTabBrowser.prototype = { this.mTabBrowser.tabContainer.removeAttribute('context'); } - if (!collapsed) { - this._tabStripPlaceHolder.collapsed = - this.splitter.collapsed = - (this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1); - } - if (this.mTabBrowser != gBrowser) return;