capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

Capacitor Keyboard height incorrect in Capacitor 6

Open xanather opened this issue 1 year ago • 7 comments

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

  1. 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.
  2. There is no callback occuring on older versions of android with windowSoftInputMode adjustPan set.

Expected Behavior

  1. Keyboard height should only include the height inserted into the webview.
  2. 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

xanather avatar Aug 09 '24 15:08 xanather