webkit-overflow-scrolling forms broken on iOS 7 full-screen web app

后端 未结 2 1145
梦如初夏
梦如初夏 2020-12-28 20:27

I\'m having trouble with a full-screen (saved to home screen) iPhone web app on iOS7.

Typically, when an input is selected, it has scrolled into view above the keybo

相关标签:
2条回答
  • 2020-12-28 20:44

    It worked on my WebApp by removing the height settings.

    0 讨论(0)
  • 2020-12-28 20:45

    Updating the viewport meta tag fixed it for me.

    I changed this:

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    

    To this:

    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />
    

    height=device-height is the actual fix (without it the viewport gets resized to accommodate the keyboard).

    0 讨论(0)
提交回复
热议问题