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

Keyboard plugin inaccurately resizing the webview on Android API 35

Open brianmuse opened this issue 9 months ago • 12 comments

Bug Report

Plugin(s)

capacitor/keyboard 7.0.1

Capacitor Version

Latest Dependencies:

@capacitor/cli: 7.2.0 @capacitor/core: 7.2.0 @capacitor/android: 7.2.0 @capacitor/ios: 7.2.0

Installed Dependencies:

@capacitor/cli: 7.2.0 @capacitor/android: 7.2.0 @capacitor/core: 7.2.0 @capacitor/ios: 7.2.0

Platform(s)

android API level 35+

Current Behavior

It overcalculates keyboard height, causing whitespace between the keyboard and webview. Seemingly (just based on observation) it may be double counting the app insets.

Image

Expected Behavior

The webview should appear directly above the keyboard without whitespace between them.

Code Reproduction

https://github.com/brianmuse/capacitor-keyboard-height-bug

Other Technical Details

Nothing else seems relevant.

Additional Context

I tested in API 33 and 34 emulators and it worked fine. When testing in 35 is where I see the issue.

brianmuse avatar May 20 '25 21:05 brianmuse