Skip to content

Keyboard plugin inaccurately resizing the webview on Android API 35 #2371

Open
@brianmuse

Description

@brianmuse

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions