mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 834409 - Fix JS typo causing an error when zooming in to text fields. r=wesj
This commit is contained in:
parent
7fe289fbe6
commit
3e95b83b38
@ -4225,7 +4225,7 @@ var BrowserEventHandler = {
|
||||
let rect = ElementTouchHelper.getBoundingContentRect(aElement);
|
||||
|
||||
let viewport = BrowserApp.selectedTab.getViewport();
|
||||
let bRect = new Rect(aCanZoomIn ? Math.max(viewport.cssPageLeft, rect.x - margin) : viewport.cssLeft,
|
||||
let bRect = new Rect(aCanZoomIn ? Math.max(viewport.cssPageLeft, rect.x - margin) : viewport.cssPageLeft,
|
||||
rect.y,
|
||||
aCanZoomIn ? rect.w + 2 * margin : viewport.cssWidth,
|
||||
rect.h);
|
||||
|
Loading…
Reference in New Issue
Block a user