Bug 834409 - Fix JS typo causing an error when zooming in to text fields. r=wesj

This commit is contained in:
Kartikaya Gupta 2013-01-24 23:29:28 -05:00
parent 7fe289fbe6
commit 3e95b83b38

View File

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