Android not allowing AbsoluteLayout/VerticalStackLayout Height and Width to be set properly (working on iOS/Windows) #17883
Labels
area-controls-border
Border
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
layout-absolute
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Using the code as follows, one should expect the app to only show a YellowGreen screen:
This works in Windows and iOS where the YellowGreen AbsoluteLayout/VerticalStackLayout fills the screen (minus the safe zone in iOS). Here it is in Windows showing the expected behavior, as it also does in iOS:
However this is what we get in Android:
The YellowGreen Layout element is tiny in the center of the screen, ignoring the width and height request made. I don't believe there is any logical error in the code. It behaves normally on iOS/Windows and it is pretty simple.
There just seems to be some incorrect layout logic being applied in Android.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jonmdev/Layout-Android-Bug
Version with bug
7.0.92
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android API 33, .NET 7.0, Google Pixel 5 Emulator
Did you find any workaround?
No, it seems very strange.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: