diff --git a/modules/browser.js b/modules/browser.js index e58cfaba..a07eee0d 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -1432,7 +1432,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { this.setTabbrowserAttribute(this.kMODE, 'vertical'); - let width = this.maxTabbarWidth(this.tabbarWidth, b); + //let width = this.maxTabbarWidth(this.tabbarWidth, b); + let width = this.maxTabbarWidth(this.autoHide.expandedWidth, b); this.setTabStripAttribute('width', width); this.removeTabStripAttribute('height'); b.mPanelContainer.removeAttribute('height'); @@ -1989,7 +1990,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { let realSize = this.getTabbarPlaceholderSize(); let width = (this.autoHide.expanded && this.isVertical && (aReason & this.kTABBAR_UPDATE_SYNC_TO_TABBAR) ? - this.maxTabbarWidth(this.tabbarWidth) : +// this.maxTabbarWidth(this.tabbarWidth) : + this.maxTabbarWidth(this.autoHide.expandedWidth) : 0 ) || realSize.width; let height = (this.autoHide.expanded && !this.isVertical && (aReason & this.kTABBAR_UPDATE_SYNC_TO_TABBAR) ? @@ -5157,7 +5159,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { resetTabbarSize : function TSTBrowser_resetTabbarSize() { if (this.isVertical) { - this.tabbarWidth = utils.getTreePref('tabbar.width.default'); + //this.tabbarWidth = utils.getTreePref('tabbar.width.default'); this.autoHide.resetWidth(); } else { diff --git a/modules/window.js b/modules/window.js index 41ec7a31..239312cf 100644 --- a/modules/window.js +++ b/modules/window.js @@ -973,7 +973,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { width += (pos == 'left' ? delta : -delta ); width = this.maxTabbarWidth(width, b); if (expanded || b.treeStyleTab.autoHide.expanded) { - b.treeStyleTab.tabbarWidth = width; + // b.treeStyleTab.tabbarWidth = width; + b.treeStyleTab.autoHide.expandedWidth = width; if (b.treeStyleTab.autoHide.mode == b.treeStyleTab.autoHide.kMODE_SHRINK && b.treeStyleTab.tabStripPlaceHolder) b.treeStyleTab.tabStripPlaceHolder.setAttribute('width', b.treeStyleTab.autoHide.shrunkenWidth);