Iphone safari not resizing viewport on keyboard open Iphone safari not resizing viewport on keyboard open ios ios

Iphone safari not resizing viewport on keyboard open


As of iOS 13 this appears to have been solved by using the VisualViewport API implementation.


Safari 10 Docs

Safari and WKWebView on iOS 10 do not update the window.innerHeight property when the keyboard is shown. On previous versions of iOS WKWebView would update the window.innerHeight property when the keyboard is shown.

Seems docs now state the opposite behavior of that noted by OP


As of March 2021, window.innerHeight DOES reflect the presence of a soft keyboard on iPad running IOS 14.4.1