From 6fb1eab8d742355b8effff557168f6b3becf71f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Oct 2019 19:12:12 +0530 Subject: [PATCH] ... --- src/pyj/read_book/view.pyj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 84ec752374..b6886292d5 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -517,9 +517,11 @@ class View: iframe.style.backgroundAttachment = 'scroll' 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.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 return ans