diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index ad9c66d9..33b0835d 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1412,6 +1412,7 @@ TreeStyleTabBrowser.prototype = { var strip = this.tabStrip; var tabContainerBox = this.getTabContainerBox(this.mTabBrowser); + var statusPanel = document.getElementById('statusbar-display'); var pos = this.position; if (pos != 'top' || this.mTabBrowser.getAttribute(this.kFIXED) != 'true') { @@ -1456,6 +1457,12 @@ TreeStyleTabBrowser.prototype = { tabContainerBox.collapsed = (this.splitter && this.splitter.getAttribute('state') == 'collapsed'); + if (statusPanel) { + statusPanel.style.marginTop = (pos == 'bottom') ? + '-moz-calc(0px - ' + height + 'px - 3em)' : + '' ; + } + this.mTabBrowser.tabContainer.setAttribute('context', this.mTabBrowser.tabContextMenu.id); } else { @@ -1465,6 +1472,10 @@ TreeStyleTabBrowser.prototype = { strip.style.width = ''; strip.style.height = ''; + if (statusPanel) { + statusPanel.style.marginTop = ''; + } + strip.removeAttribute('layer'); // https://bugzilla.mozilla.org/show_bug.cgi?id=590468 this.mTabBrowser.tabContainer.removeAttribute('context');