Add a reference to the bug

This commit is contained in:
Kovid Goyal 2021-03-10 22:39:31 +05:30
parent 537efd11b1
commit f38ac80991
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -509,7 +509,8 @@ def jump_to_anchor(name):
def scrollable_element(elem):
# bounding rect calculation for an inline element containing a block
# element that spans multiple columns is incorrect. Detet the common case
# of this and avoid it.
# of this and avoid it. See https://bugs.launchpad.net/calibre/+bug/1918437
# for a test case.
if not in_paged_mode() or window.getComputedStyle(elem).display.indexOf('inline') < 0 or not elem.firstElementChild:
return elem
if window.getComputedStyle(elem.firstElementChild).display.indexOf('block') > -1: