mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -62,10 +62,10 @@ def margin_elem(sd, which, id, onclick):
|
|||||||
)
|
)
|
||||||
if onclick:
|
if onclick:
|
||||||
ans.addEventListener('click', onclick)
|
ans.addEventListener('click', onclick)
|
||||||
if is_ios and which is 'margin_bottom':
|
if is_ios and which is 'margin_bottom' and not /CriOS\//.test(window.navigator.userAgent):
|
||||||
# On iOS 100vh includes the size of the navbar and there is no way to
|
# 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
|
# 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'
|
ans.style.marginBottom = '25px'
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user