1

I was using jQuery $(window)height() to get the height of view-port. This works in all browsers expect safari browser in iPhone 6. It don't give correct height of view-port. I also tried window.innerHeight, but results are same. Any help?

Nafees Anwar
  • 5,781
  • 2
  • 23
  • 38

1 Answers1

0

I will refer you to this post. There is a hacky fix, but it boils down to a bug in Safari mobile (that might also apply to Safari desktop)

Mobile Safari $(window).height() URL bar discrepancy

Community
  • 1
  • 1
Korgrue
  • 3,340
  • 1
  • 13
  • 20