[Android] VisibleBoundsPadding.PaddingMask.Top does not always work as attended #6218
Open
3 of 24 tasks
Comments
|
The computation is supposed to use the status bar size to set the uno/src/Uno.UI/UI/Xaml/Window.Android.cs Lines 156 to 159 in d59985f Could be the computation is done too early or not using the same content from occluded area. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Current behavior
When I removed the status bar by adding those 4 lines in the style.xml
Applying
VisibleBoundsPadding.PaddingMask.Topon top of my xaml, it won't give enough space for the status bar and notch (if available)Android

*See workaround for expected result
Expected behavior
Expected result and Actual result should be mostly aligned vertically.
iOS

How to reproduce it (as minimally and precisely as possible)
Download StatusBarPaddingMask.zip
Deploy on Android
Workaround
To achieve similar result, I am able to retrieve the actual status bar height with
StatusBar.GetForCurrentView().OccludedRect.Height. I am wondering if this should actually be used to calculateVisibleBoundsPadding.PaddingMask.TopEnvironment
Nuget Package:
Nuget Package Version(s): 3.9.0-dev.6
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: