зеркало из https://github.com/mozilla/gecko-dev.git
Bug 515355: Zoom factor is not correct when double clicking a text. [r=bugmail]
This commit is contained in:
Родитель
9b8a948882
Коммит
04f6d7cdb2
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче