This commit is contained in:
Kovid Goyal 2019-10-15 19:12:12 +05:30
parent a1171d71fb
commit 6fb1eab8d7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -517,9 +517,11 @@ class View:
iframe.style.backgroundAttachment = 'scroll' iframe.style.backgroundAttachment = 'scroll'
iframe.style.backgroundPosition = '0 0' iframe.style.backgroundPosition = '0 0'
iframe.parentNode.style.backgroundColor = ans.background # this is needed on iOS where the bottom margin has its own margin, so we dont want the body background color to bleed through
self.content_popup_overlay.apply_color_scheme(ans.background, ans.foreground) self.content_popup_overlay.apply_color_scheme(ans.background, ans.foreground)
self.book_scrollbar.apply_color_scheme(ans) self.book_scrollbar.apply_color_scheme(ans)
# this is needed on iOS where the bottom margin has its own margin,
# so we dont want the body background color to bleed through
iframe.parentNode.style.backgroundColor = ans.background
iframe.parentNode.parentNode.style.backgroundColor = ans.background iframe.parentNode.parentNode.style.backgroundColor = ans.background
return ans return ans