mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2504269d87
commit
3eac3b3c53
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user