Bug 621892 - Adjust y coordinate after text reflow [r=vingtetun]

--HG--
extra : rebase_source : f0d3cc721f7cc34af4713ae0ee85c3a424d91918
This commit is contained in:
Matt Brubeck 2010-12-29 07:34:16 -08:00
Родитель 70127480a7
Коммит 3a9b5af818
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -535,7 +535,10 @@ Content.prototype = {
rect = getBoundingContentRect(element);
if (Services.prefs.getBoolPref("browser.ui.zoom.reflow")) {
this._setTextZoom(Math.max(1, rect.width / json.width));
let oldRect = rect;
rect = getBoundingContentRect(element);
y += rect.top - oldRect.top;
}
}
}