From 1cf008ab2a72c1b622620fe8f1f8f323fbe2eeb9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 May 2017 10:23:51 +0530 Subject: [PATCH] Do not use the bottom margin hack on Chrome for iOS since it is not needed --- src/pyj/read_book/view.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 06c6c39c90..e6faf2fa5e 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -62,10 +62,10 @@ def margin_elem(sd, which, id, onclick): ) if onclick: ans.addEventListener('click', onclick) - if is_ios and which is 'margin_bottom': - # On iOS 100vh includes the size of the navbar and there is no way to + if is_ios and which is 'margin_bottom' and not /CriOS\//.test(window.navigator.userAgent): + # On iOS Safari 100vh includes the size of the navbar and there is no way to # go fullscreen, so to make the bottom bar visible we add a margin to - # the bottom bar + # the bottom bar. CriOS is for Chrome on iOS. ans.style.marginBottom = '25px' return ans