capacitor-plugins
capacitor-plugins copied to clipboard
Capacitor Keyboard height incorrect in Capacitor 6
Bug Report
Plugin(s)
Capacitor Keyboard
Capacitor Version
6+
Affected Platform(s)
Android all versions, for older versions (Android 9) the bug is even more severe where no keyboard callbacks are made when windowSoftInputMode adjustPan mode is enabled.
Current Behavior
- The keyboard height includes the navigation bar height, which makes it kind of useless (its non-consistent and requires manually calculating navigation bar height to make it meaningful) and is a breaking change since it didn't before.
- There is no callback occuring on older versions of android with windowSoftInputMode adjustPan set.
Expected Behavior
- Keyboard height should only include the height inserted into the webview.
- Keyboard callbacks should occur always when windowSoftInputMode adjustPan is set.
Code Reproduction
Other Technical Details
Additional Context
See PR that broke functionality: https://github.com/ionic-team/capacitor-plugins/pull/1980