From 3eac3b3c531a8248b2e5c02d17a64a9fa36c9ace Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 29 Apr 2016 09:14:54 +0530 Subject: [PATCH] ... --- src/pyj/utils.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/utils.pyj b/src/pyj/utils.pyj index 893e4f8068..5593321cdc 100644 --- a/src/pyj/utils.pyj +++ b/src/pyj/utils.pyj @@ -114,7 +114,7 @@ def viewport_to_document(x, y, doc): # Convert x, y from the viewport (window) co-ordinate system to the # document (body) co-ordinate system doc = doc or window.document - topdoc = window.top.document + topdoc = window.document while doc is not topdoc: # We are in a frame frame = doc.defaultView.frameElement