From 3a9b5af81852d5180e2fb7018d4b1481e3fe5b8a Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 29 Dec 2010 07:34:16 -0800 Subject: [PATCH] Bug 621892 - Adjust y coordinate after text reflow [r=vingtetun] --HG-- extra : rebase_source : f0d3cc721f7cc34af4713ae0ee85c3a424d91918 --- mobile/chrome/content/content.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/chrome/content/content.js b/mobile/chrome/content/content.js index 513125a8f545..91d1415a54c4 100644 --- a/mobile/chrome/content/content.js +++ b/mobile/chrome/content/content.js @@ -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; } } }