diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index a4a3ec36..30e8a0d2 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -3219,13 +3219,20 @@ TreeStyleTabBrowser.prototype = { var maxMargin; var offsetAttr; - if (this.isVertical) { - maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.height; - offsetAttr = this.kY_OFFSET; - } - else { - maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.width; - offsetAttr = this.kX_OFFSET; + let (firstTab) { + firstTab = this.getFirstTab(this.mTabBrowser); + if (this.isVertical) { + maxMargin = firstTab.boxObject.height; + offsetAttr = this.kY_OFFSET; + if (firstTab.style.height) + aTab.style.height = firstTab.style.height; + } + else { + maxMargin = firstTab.boxObject.width; + offsetAttr = this.kX_OFFSET; + if (firstTab.style.width) + aTab.style.width = firstTab.style.width; + } } var startMargin, endMargin, startOpacity, endOpacity;