bug 511959 - Fennec starts up with tab bar open and ugly white box showing r=blassey

This commit is contained in:
Ben Combee 2009-08-28 15:08:39 -04:00
parent cd3d694365
commit 4d46272cf5
2 changed files with 9 additions and 7 deletions

View File

@ -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);
},

View File

@ -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.