This commit is contained in:
Kovid Goyal 2020-07-24 16:03:15 +05:30
parent 8e609162c2
commit 0407959ce4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -69,7 +69,7 @@ def range_extents(start, end, in_flow_mode):
node = node.childNodes[r.startOffset]
if node.getBoundingClientRect:
erect = node.getBoundingClientRect()
rect = {'left': erect.left, 'top': erect.top, 'height': 2}
rect = {'left': erect.left, 'top': erect.top, 'right': erect.right, 'bottom': erect.bottom, 'width': erect.width, 'height': 2}
ans.x = Math.round(rect.left)
ans.y = Math.round(rect.top)
ans.height = rect.height