Bug 515355: Zoom factor is not correct when double clicking a text. [r=bugmail]

This commit is contained in:
Fabrice Desré 2009-09-09 14:21:32 -04:00
parent 06f8e65f31
commit ded67c894a

View File

@ -1009,7 +1009,7 @@ var Browser = {
/* Try to set zoom-level such that once zoomed element is as wide
* as the visible rect */
let zoomLevel = BrowserView.Util.clampZoomLevel((vrWidth + (2 * margin)) / elWidth);
let zoomLevel = BrowserView.Util.clampZoomLevel((vrWidth - (2 * margin)) / elWidth);
let oldZoomLevel = bv.getZoomLevel();
//dump("element width: " + elWidth + "\n");