Grid Star in Android always full the screen #23445
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
p/2
Work that is important, but is currently not scheduled for release
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
I have some view that I need to be adaptive sizes in content. This will be used in
PopupPage
. Imagine the layout like thisThis is needed so I can have header and footer. But the content can be scrolled if the device screen is not enough (in case it is landscape)
This is working fine on iOS
but on Android it force the content to be full of page
Steps to Reproduce
GridStarRowPage
in iOS and Android. It will be look like aboveLink to public reproduction project repository
https://github.com/albilaga/MauiIssues
Version with bug
8.0.61 SR6.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 and up
Did you find any workaround?
The workaround I can find right now is basically check if the content size height > screen height or not. If it is more than height then I should set the
Grid.RowDefinitions[1]=GridLength.Star
but if the content height < screen height then I should setGrid.RowDefinitions[1]=GridLengthAuto
The code is to work around is in here. Or when running from the repro project you can just uncomment this line
Relevant log output
No response
The text was updated successfully, but these errors were encountered: