mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:46:52 +02:00
Do not use the bottom margin hack on Chrome for iOS since it is not needed
This commit is contained in:
parent
622a7fcafd
commit
1cf008ab2a
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue