mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
bug 511959 - Fennec starts up with tab bar open and ugly white box showing r=blassey
This commit is contained in:
parent
cd3d694365
commit
4d46272cf5
@ -577,7 +577,8 @@ var BrowserUI = {
|
||||
},
|
||||
|
||||
isTabsVisible: function isTabsVisible() {
|
||||
let [leftvis,,,] = Browser.computeSidebarVisibility();
|
||||
// The _1, _2 and _3 are to make the js2 emacs mode happy
|
||||
let [leftvis,_1,_2,_3] = Browser.computeSidebarVisibility();
|
||||
return (leftvis > 0.002);
|
||||
},
|
||||
|
||||
|
@ -404,10 +404,9 @@ var Browser = {
|
||||
}
|
||||
}
|
||||
|
||||
Browser.hideSidebars();
|
||||
|
||||
bv.onAfterVisibleMove();
|
||||
bv.zoomToPage();
|
||||
Browser.hideSidebars();
|
||||
// hidesidebars calls bv.onAfterVisibleMove();
|
||||
bv.commitBatchOperation();
|
||||
}
|
||||
window.addEventListener("resize", resizeHandler, false);
|
||||
@ -578,11 +577,13 @@ var Browser = {
|
||||
let container = document.getElementById("tile-container");
|
||||
let containerBCR = container.getBoundingClientRect();
|
||||
|
||||
let dx = containerBCR.left;
|
||||
// round here because when going to full screen, this value tends
|
||||
// to be very small but negative
|
||||
let dx = Math.round(containerBCR.left);
|
||||
if (dx < 0)
|
||||
dx = Math.min(containerBCR.right - window.innerWidth, 0);
|
||||
dx = Math.min(Math.round(containerBCR.right - window.innerWidth), 0);
|
||||
|
||||
this.controlsScrollboxScroller.scrollBy(Math.round(dx), 0);
|
||||
this.controlsScrollboxScroller.scrollBy(dx, 0);
|
||||
|
||||
Browser.contentScrollbox.customDragger.scrollingOuterX = false; // XXX ugh.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user