-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
iOS: UseSafeArea is ignored when root-element is a ScrollView #15897
Comments
I just noticed, that the same error occurs when using a |
We see this issue in our App as well with MAUI version 7.0.92. Because of this we cannot use the |
This is because ScrollView doesnt have the property IgnoreSafeArea, which is set to default to False for Layouts like Grid. I openened an issue here #16360 |
Are you able to try this again with a nightly build? https://github.com/dotnet/maui/wiki/Nightly-Builds |
This issue is somewhat "Fixed" in the latest SR1 by the following PR. The UIScrollView now correctly takes https://developer.apple.com/documentation/uikit/uiscrollview/2902261-contentinsetadjustmentbehavior into account. By default UIScrollView has this property set to "Automatic" which means the UIScrollView itself will occupy the That being said, the UIScrollView in SR1 will now layout correctly based on what the Check out the docs here on how to customize https://learn.microsoft.com/en-us/dotnet/maui/user-interface/handlers/customize?view=net-maui-8.0 I think we can close this issue for now as a duplicate of #16360 which covers the scenario a bit more broadly. |
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 issue with Visual Studio Enterprise 17.9.0 Preview 4. Still repro on iOS platform with steps. |
Any update on this issue? |
1 similar comment
Any update on this issue? |
Any update on this issue? This is a priority for us. |
Please provide a high priority for this issue. |
Any update on this issue? |
1 similar comment
Any update on this issue? |
Any workaround for this issue? Please provide a high priority for this issue. |
It's indeed sad that after more than a year this still hasn't been addressed. There is a workaround though, but it's clunky: wrap the ScrollView in a Grid |
Any update regarding this issue? |
Description
I am having a
ContentPage
where the SafeArea is enabled.Using a
ScrollView
as a root-element, the SafeArea is ignored.Wrapping the
ScrollView
inside aGrid
leads to the desired result (SafeArea is respected):Steps to Reproduce
ScrollView
as root-element (SafeArea is ignored)Grid
as a root-element (SafeArea is respected)Link to public reproduction project repository
n/a
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.4
Did you find any workaround?
Wrapping the
ScrollView
inside aGrid
-element. Performance-wise, this is a bad solution, of course.Relevant log output
No response
The text was updated successfully, but these errors were encountered: