mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
2f7bf27e63
commit
c26d21aac5
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user