mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix display bug on the iPad/iOS 7
This commit is contained in:
parent
d3c7a6fdc1
commit
5314611148
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@
|
|||
@document = new app.views.Document
|
||||
@mobile = new app.views.Mobile if @isMobile()
|
||||
|
||||
if navigator.userAgent.match /iPad;.*CPU.*OS 7_\d/i
|
||||
document.documentElement.style.height = "#{window.innerHeight}px"
|
||||
|
||||
if @DOC
|
||||
@bootOne()
|
||||
else if @DOCS
|
||||
|
|
Loading…
Reference in a new issue