-
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
Not All Containers have IgnoreSafeArea Property #16360
Comments
Interestingly a ScrollView that is inside a Grid with IgnoreSafeArea=False, sometimes also extends to the full screen, but sometimes doesn't... Unfortunately I am not able to figure out when exactly this happens and when not. It seems like a race condition because after navigating from and back to the same page the behavior changes sometimes |
Isn't the Safe Area a feature for Pages? Why would any child views need such a setting? |
@ewerspej I read IgnoreSafeArea was introduced because Comet doesn't have Pages. But I agree, they shouldn't really have this property, or if they do at least it should be implemented on all Layouts and the default should be the other way around. Also I really don't understand why such a breaking change was introduced for Comet, which according to the github repo is only 'proof of concept'. |
I just got to see the exact same issue. The scroll inside grid doesn't expand when list items are less, when i added more items which doesn't fit in the screen, the scroll started expanding as expected. :/ |
Verified this issue with Visual Studio Enterprise 17.10.0 Preview 1. Can repro on iOS platform with repro steps. |
What does latest-version mean? .NET 9? |
Latest .NET 8 version, .NET 8.0.6 |
@jsuarezruiz thank you. The default behaviour now seems improved. When using a ScrollView, content is still not displayed in the Danger Zone though, even when all Layouts have This means that this:
shows a Green backgroud on the page in the danger zone, eventhough VerticalStackLayout has no margin and ScrollView has no padding. Here is a repo |
The use case is very simple and basic. -> Wanting to have the whole page available for content, no matter the layout (or View) that is used. |
Description
e.g. ScrollView doesnt have IgnoreSafeArea. Since IgnoreSafeArea is set to False per default. a Grid has a padding per default, while a ScrollView doesnt. This causes Layout bugs on iOS per default, when UseSafeArea is set to False on Page level.
Steps to Reproduce
Link to public reproduction project repository
Version with bug
7.0.49
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
any iOS
Did you find any workaround?
Wrap Containers that arent a Layout with a Layout like Grid.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: