Bug 876562. Fix scrollport size calculation that didn't make a lot of sense. r=kats

It was taking the min over two values that weren't in the same unit (the first in CSS pixels, the second in dev pixels).
This commit is contained in:
Timothy Nikkel 2013-06-14 10:53:39 -05:00
parent 2f7bf27e63
commit c26d21aac5

View File

@ -2985,8 +2985,8 @@ Tab.prototype = {
// the clamping scroll-port size.
let factor = Math.min(viewportWidth / screenWidth, pageWidth / screenWidth,
viewportHeight / screenHeight, pageHeight / screenHeight);
let scrollPortWidth = Math.min(screenWidth * factor, pageWidth * zoom);
let scrollPortHeight = Math.min(screenHeight * factor, pageHeight * zoom);
let scrollPortWidth = screenWidth * factor;
let scrollPortHeight = screenHeight * factor;
let win = this.browser.contentWindow;
win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).