Pārlūkot izejas kodu

Fix display bug on the iPad/iOS 7

Thibaut 11 gadi atpakaļ
vecāks
revīzija
5314611148
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      assets/javascripts/app/app.coffee

+ 3 - 0
assets/javascripts/app/app.coffee

@@ -23,6 +23,9 @@
     @document = new app.views.Document
     @document = new app.views.Document
     @mobile = new app.views.Mobile if @isMobile()
     @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
     if @DOC
       @bootOne()
       @bootOne()
     else if @DOCS
     else if @DOCS