-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
On Android, a Grid with InputTransparent="True" inside a modal ContentPage (transparent background) doesn't fill the available space on first render. Gaps appear at bottom and right edges. After Hot Reload, it expands correctly. iOS works fine.
Steps to Reproduce
- Create ContentPage with BackgroundColor="Transparent"
- Add overlapping Grid elements (same Row/Column)
- Set InputTransparent="True" on overlay Grid
- Open as modal: Navigation.PushModalAsync(page, false)
- Run on Android → Overlay Grid doesn't fill screen
Expected: Overlay fills entire screen
Actual: Gaps at bottom/right on first render
<ContentPage BackgroundColor="Transparent">
<Grid SafeAreaEdges="None" RowDefinitions="*" ColumnDefinitions="*">
<Grid Grid.Row="0" Grid.Column="0" BackgroundColor="Black" SafeAreaEdges="None" />
<Grid Grid.Row="0" Grid.Column="0" BackgroundColor="Aqua" InputTransparent="True" SafeAreaEdges="None" />
</Grid>
</ContentPage>Link to public reproduction project repository
https://github.com/paulober/maui-layout-modal-bug-repro
Version with bug
10.0.20
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
Android
Affected platform versions
Android API v36 but probably also earlier
Did you find any workaround?
Yes. Remove InputTransparent="True" and use TapGestureRecognizer on the Grid instead:
<Grid Grid.Row="0" Grid.Column="0">
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding CloseCommand}"/>
</Grid.GestureRecognizers>
</Grid>Relevant log output
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working