mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
79db6e1f75
commit
33d9e13cd9
@ -855,7 +855,9 @@ def get_bounding_client_rect_using_offset_properties(elem):
|
|||||||
ans.top += elem.offsetTop
|
ans.top += elem.offsetTop
|
||||||
elem = elem.offsetParent
|
elem = elem.offsetParent
|
||||||
ans.left -= window.scrollX
|
ans.left -= window.scrollX
|
||||||
ans.top -= window.scrollTop
|
ans.top -= window.scrollY
|
||||||
|
ans.right = ans.left + ans.width
|
||||||
|
ans.bottom = ans.top + ans.height
|
||||||
ans.x, ans.y = ans.left, ans.top
|
ans.x, ans.y = ans.left, ans.top
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user