From 6d6aa89ec1b26d311e44700948a16a2777e0bc60 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Mon, 31 Jan 2011 01:22:14 +0900 Subject: [PATCH] Reposition status panel (introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=628654 ) for bottom tab bar --- content/treestyletab/treestyletabbrowser.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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');