add a note

This commit is contained in:
Kovid Goyal 2021-04-18 13:54:57 +05:30
parent c1d261defb
commit e9e53e767b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -574,6 +574,7 @@ anchor_funcs = {
q = -q
if q + 1 < scroll_viewport.block_pos():
# the + 1 is needed for visibility when top aligned, see: https://bugs.launchpad.net/calibre/+bug/1924890
return -1
if q <= scroll_viewport.block_pos() + scroll_viewport.block_size():
return 0