From f38ac809911ac8f05a7bdba76f18fb8f3b4086c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Mar 2021 22:39:31 +0530 Subject: [PATCH] Add a reference to the bug --- src/pyj/read_book/paged_mode.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 2ffb438e08..9d87088bbb 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -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: