Skip to content

[Bug]: Don't use calculated bottom inset if keyboard is visible #8277

@insel-maz

Description

@insel-maz

Capacitor Version

Capacitor 8.0.0

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

In version 8.0.0 SystemBars sets too much bottom padding for --safe-area-inset-bottom if the keyboard is visible.

Expected Behavior

Don't use the calculated bottom safe area inset if the keyboard is visible.

No bottom inset is needed (e. g. by the navigation bar) if the keyboard is visible.

Project Reproduction

Additional Information

To fix this you could possibly add
safeAreaInsets = Insets.of(safeAreaInsets.left, safeAreaInsets.top, safeAreaInsets.right, 0);
to

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionneeds reproducible example to illustrate the issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions