mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Reduce negative check value for when to not use bounding rect with anchors.
This commit is contained in:
parent
91ad373d78
commit
086ede3705
Binary file not shown.
@ -416,7 +416,7 @@ class PagedDisplay
|
||||
# https://bugs.launchpad.net/calibre/+bug/1132641 for a test case.
|
||||
# The usual symptom of the inaccuracy is br.top is highly negative.
|
||||
br = elem.getBoundingClientRect()
|
||||
if br.top < -1000
|
||||
if br.top < -100
|
||||
# This only works because of the preceding call to
|
||||
# elem.scrollIntoView(). However, in some cases it gives
|
||||
# inaccurate results, so we prefer the bounding client rect,
|
||||
|
Loading…
x
Reference in New Issue
Block a user