-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS.get_window_safe_area() returns incorrect size on Android when not in fullscreen #61467
Comments
In case anyone is wondering, Android API level < 28 refers to Android 8 and below. |
Actually the problem applies to all versions of Android not just to earlier versions of Android. |
It's worth pointing out that, on master, we've renamed |
¿are there any updates?. |
yes, this means the safe area is smaller when the keyboard blocks part of the screen. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I am trying to find solutions for this, with no guarantee of success 😃 |
What else should be tested? Screen_recording_20240103_205441.mp4 |
Godot version
3.4.4, 3.5 RC2 and master
System information
Android 8
Issue description
OS.get_window_safe_area()
uses the display size not the window size; so when Godot is not in full-screen mode e.g. when immersive mode is disabled, and the window size is not the display size, the calculations forget_window_safe_area()
are wrong.Steps to reproduce
Disable immersive mode. Call
OS.get_window_safe_area()
.Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: