Skip to content

Virtual keyboard height is wrong when making navigation bar permanently visible  #86663

@leoyanis

Description

@leoyanis

Tested versions

4.2 (betas and devs), 4.2, 4.2.1, 4.3 dev1

System information

Editor on MacOS, exporting for Android

Issue description

The keyboard height gets calculated wrong when using specific system UI flags on android which cause the navigation bar to be visible all the time.
It seems like the virtual keyboard height gets added to the navigation bar height which i set as permanent in a flag.
Didnt find a workaround, spent already too much time trying to.
I hope the devs fix this in the next version

This only happens on android 11+, I have one phone on which this does not happen

Here are a few screenshots from a minimal reproduction project i made:

https://github.com/godotengine/godot/assets/144027730/ddc72c1b-0c04-427e-96a3-64f5c01c44a1
Screenshot_20231231_134936_NavigationBarProblem
Screenshot_20231231_134929_NavigationBarProblem

Steps to reproduce

Make a minimal project which needs the height of the virtual keyboard in android
Use these themes.xml, androidmanifest.xml and GodotApp.java files to properly style the app
Archive.zip

Expand the keyboard
You will see a gap of the size of the navigation bar (if activated)

This only happens on android 11+, I have one phone on which this does not happen

Minimal reproduction project (MRP)

NavigationBarProblem.zip
Archive.zip

The Archive.zip contains the GodotApp.java, themes.xml and AndroidManifest.xml which you have to insert in the android export template accordingly because i couldn't upload the project with that export template installed (too much space)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions