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

https://github.com/insel-maz/capacitor-8-safe-area-inset-bottom

Additional Information

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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions