mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
remove ios hack
This commit is contained in:
parent
70d1c1917f
commit
b911fa4c8e
@ -191,12 +191,6 @@ def margin_elem(sd, which, id, onclick, oncontextmenu):
|
|||||||
ans.addEventListener('click', onclick)
|
ans.addEventListener('click', onclick)
|
||||||
if oncontextmenu:
|
if oncontextmenu:
|
||||||
ans.addEventListener('contextmenu', oncontextmenu)
|
ans.addEventListener('contextmenu', oncontextmenu)
|
||||||
if is_ios and which is 'margin_bottom' and not window.navigator.standalone 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. CriOS is for Chrome on iOS. And in standalone
|
|
||||||
# (web-app mode) there is no nav bar.
|
|
||||||
ans.style.marginBottom = '25px'
|
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user