mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Only use workaround if boundingrect is actuall negative topped
This commit is contained in:
parent
2ad7fdc33f
commit
611613681f
@ -515,7 +515,7 @@ def scrollable_element(elem):
|
||||
# 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:
|
||||
if window.getComputedStyle(elem.firstElementChild).display.indexOf('block') > -1 and elem.getBoundingClientRect().top < -100:
|
||||
return elem.firstElementChild
|
||||
return elem
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user