From 835c49646654262c0e9921ad264425ea14ec826e Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Thu, 26 May 2011 03:05:48 +0900 Subject: [PATCH] when the grippy in the splitter of the tab bar, only the placeholder was expanded and tab bar wrongly kept itself collapsed. --- content/treestyletab/treestyletabbrowser.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 6f1f9e76..8015f246 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1576,17 +1576,17 @@ TreeStyleTabBrowser.prototype = { { aReason = aReason || this.kTABBAR_UPDATE_BY_UNKNOWN_REASON; - if (this.splitter.collapsed || this.splitter.getAttribute('state') != 'collapsed') { + var splitter = this.splitter; + if (splitter.collapsed || splitter.getAttribute('state') != 'collapsed') { this._tabStripPlaceHolder.collapsed = - this.splitter.collapsed = + splitter.collapsed = (this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1); } var strip = this.tabStrip; - var collapsed = ( - (strip.collapsed) || - (this.splitter && this.splitter.getAttribute('state') == 'collapsed') - ); + var collapsed = splitter.collapsed ? + strip.collapsed : + splitter.getAttribute('state') == 'collapsed' ; var stripStyle = strip.style; var tabContainerBox = this.getTabContainerBox(this.mTabBrowser); var statusPanel = document.getElementById('statusbar-display');