Skip to content
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

Fix crash in SafeAreaContainer when working with negative sizing #5047

Merged
merged 2 commits into from
Feb 21, 2022

Conversation

peppy
Copy link
Member

@peppy peppy commented Feb 21, 2022

I'm not 100% sure this will provide the correct behaviour when negatively sized. It's hard to tell what the expectation would be in this case (sizing the SafeAreaContainer in this manner will give completely unexpected results unless it completely ignores the negative component... since the intention of these containers is to handle device edge scenarios).

Fixes #5015.

I'm not 100% sure this will provide the correct behaviour when
negatively sized. It's hard to tell what the expectation would be in
this case (sizing the `SafeAreaContainer` in this manner will give
completely unexpected results unless it completely ignores the negative
component... since the intention of these containers is to handle device
edge scenarios).

Fixes ppy#5015.
@smoogipoo smoogipoo merged commit ccc5bb2 into ppy:master Feb 21, 2022
@peppy peppy deleted the fix-safe-area-negative-draw-size-crash branch April 21, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SafeAreaContainer can fail due to negative values in DrawSize
2 participants