1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 16:27:59 +01:00

Fix last commit.

This commit is contained in:
Doug Kearns
2009-10-02 04:24:46 +10:00
parent c033ea3fab
commit 3e398fdbf3

View File

@@ -276,9 +276,11 @@ function Hints() //{{{
// the containing block offsets with respect to the viewport
function getContainerOffsets(doc)
{
let body = doc.body || doc.documentElement;
if (/^(absolute|fixed|relative)$/.test(util.computedStyle(body)["position"]))
{
let bodyRect = (doc.body || doc.documentElement).getClientRects()[0];
let bodyRect = body.getClientRects()[0];
return [-bodyRect.left, -bodyRect.top];
}
else