Reposition status panel (introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=628654 ) for bottom tab bar
This commit is contained in:
parent
04b0d6b490
commit
6d6aa89ec1
@ -1412,6 +1412,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
var strip = this.tabStrip;
|
var strip = this.tabStrip;
|
||||||
var tabContainerBox = this.getTabContainerBox(this.mTabBrowser);
|
var tabContainerBox = this.getTabContainerBox(this.mTabBrowser);
|
||||||
|
var statusPanel = document.getElementById('statusbar-display');
|
||||||
var pos = this.position;
|
var pos = this.position;
|
||||||
if (pos != 'top' ||
|
if (pos != 'top' ||
|
||||||
this.mTabBrowser.getAttribute(this.kFIXED) != 'true') {
|
this.mTabBrowser.getAttribute(this.kFIXED) != 'true') {
|
||||||
@ -1456,6 +1457,12 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
tabContainerBox.collapsed = (this.splitter && this.splitter.getAttribute('state') == 'collapsed');
|
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);
|
this.mTabBrowser.tabContainer.setAttribute('context', this.mTabBrowser.tabContextMenu.id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1465,6 +1472,10 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
strip.style.width = '';
|
strip.style.width = '';
|
||||||
strip.style.height = '';
|
strip.style.height = '';
|
||||||
|
|
||||||
|
if (statusPanel) {
|
||||||
|
statusPanel.style.marginTop = '';
|
||||||
|
}
|
||||||
|
|
||||||
strip.removeAttribute('layer'); // https://bugzilla.mozilla.org/show_bug.cgi?id=590468
|
strip.removeAttribute('layer'); // https://bugzilla.mozilla.org/show_bug.cgi?id=590468
|
||||||
|
|
||||||
this.mTabBrowser.tabContainer.removeAttribute('context');
|
this.mTabBrowser.tabContainer.removeAttribute('context');
|
||||||
|
Loading…
Reference in New Issue
Block a user