-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
needs reproductionneeds reproducible example to illustrate the issueneeds reproducible example to illustrate the issue
Description
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
capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/SystemBars.java
Line 167 in 1ef73a3
| if (keyboardVisible) { |
Additional Information
To fix this you could possibly add
safeAreaInsets = Insets.of(safeAreaInsets.left, safeAreaInsets.top, safeAreaInsets.right, 0);
to
capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/SystemBars.java
Line 167 in 1ef73a3
| if (keyboardVisible) { |
Metadata
Metadata
Assignees
Labels
needs reproductionneeds reproducible example to illustrate the issueneeds reproducible example to illustrate the issue