ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
192 stars 177 forks source link

iPhone XS, XS Max, XR app height after keyboard dismissed is larger than initial height #89

Closed byronigoe closed 4 years ago

byronigoe commented 5 years ago

See the attached screenshot: iOS11

The initial app height (left) has extra padding at the bottom. After the keyboard is closed (right) the new app height is taller.

byronigoe commented 5 years ago

I added many log statements to try to determine what was happening, but it's unclear.

In pluginInitialize() the self.webView.frame.size.height initially reports 460 (which does not appear to be true). In _updateFrame() I output the same metric, and I get 768 both before the keyboard is opened and after it is closed.

I'm happy to run more tests if anyone has thoughts about what to try.

byronigoe commented 5 years ago

This issue is related to the bottom notch on iPhone XS, XS Max, XR. The issue is not present on iPhone 8 and others. Has anyone looked into this?

jcesarmobile commented 5 years ago

Can you provide a sample app? I can't reproduce

byronigoe commented 4 years ago

The problem does not exist on iOS 13 Beta, so I am not going to spend further energy on creating a minimal reproducible example.