-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Can only ignore iOS Safe Area when navigation bar is hidden #17022
Comments
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on iOS 16.4 .NET 8 with below Project: |
Hi @davidortinau, I am trying out different parts of this issue! Inside current main, looks like the Shell Flyout menu gives the desired behavior if I am understanding correctly Was there an example of this behavior that you were expecting in the past on Shell ? |
@tj-devel709 the issue I'm showing does NOT use Shell. The PlayItUnsafe solution uses FlyoutPage > NavigationPage > ContentPage. |
Got the same issue with a grid inside a content page |
Description
Porting an Xamarin.Forms app to .NET MAUI, I found that the old safe area code doesn't work as expected in .NET MAUI. I found the recommendation to use
IgnoreSafeArea="True"
on the layout, however this didn't do anything until...I did a repro in a blank app and hid the navigation bar.
PlayItUnsafe.zip
This AppDelegate code should (used to) make the nav bar bg transparent to create this look.
The SmartHotel360 app uses FlyoutPage and the sample repro uses Shell. Both should work.
Steps to Reproduce
run the sample from the zip and/or the repo linked. Show/hide the navigation bar. In both cases the content should be at the very top of the device screen, not at the bottom of the nav bar.
Link to public reproduction project repository
https://github.com/davidortinau/SmartHotel360-Mobile/blob/upgrade-step-1/Source/SmartHotel.Clients/SmartHotel.Clients.iOS/AppDelegate.cs
Version with bug
8.0.0-preview.7.8842
Also tested latest 7.0
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
16.4
Did you find any workaround?
Not without abandoning the existing implementation with ToolbarItem and flyout menu button etc.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: