mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
...
This commit is contained in:
parent
46e0f5171c
commit
be9942671b
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def for_boundary(r, ans):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue