mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:22:30 +02:00
Fix last commit.
This commit is contained in:
1 parent
c033ea3fab
commit
3e398fdbf3
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user