From 6ab4d222ae70f46d4c723c8f2f88cb6731bb2543 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 29 Aug 2009 15:45:17 -0400 Subject: [PATCH] Fix bug in last commit. --- common/content/hints.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/content/hints.js b/common/content/hints.js index a452394c..8c0624e4 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -276,8 +276,7 @@ function Hints() //{{{ function getBodyOffsets(doc) { let bodyRect = (doc.body || doc.documentElement).getBoundingClientRect(); - return [doc.defaultView.scrollX - bodyRect.left, - doc.defaultView.scrollY - bodyRect.top]; + return [-bodyRect.left, -bodyRect.top]; } /**