How to calculate height of viewable area (i.e., window height minus address & bookmark bars) in mobile Safari for web app?

后端 未结 4 1153
后悔当初
后悔当初 2020-12-14 08:12

What is the right way to calculate how much viewable space is available on mobile Safari? By viewing area, we mean the amount of the screen actually available to a web app,

4条回答
  •  死守一世寂寞
    2020-12-14 09:05

    For anyone who comes in 2020, window.screen.availHeight is the only one that works as @Marcel Falliere's comment below.

提交回复
热议问题