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

Revert "Fix SafeArea adjustments" #24600

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Sep 4, 2024

Description

Reverts #23729

This PR regressed Bugzilla28570

I still haven't quite been able to narrow this one down
AFAICT the safearea is being double accounted for

The ScrollView adjusts the contentinset when it does a measure

image

but then when it does the actual measure

image

The height on that measure gets turned into "Infinity" by the scrollview measure code here

image

because of that the measure here doesn't get clamped

image

This is kind of an odd case because the ScrollView in Bugzilla28570 is unbounded since it's inside a StackLayout.

The adjustment for the safearea on a stacklayout is kind of silly because if the height of the SL is 4000 from the content the adjustment from the bottom safe area is pointless.

Stacklayouts should probably never adjust from bottom or right safe area padding.

for example here you can see it adjust down 3659 by 34 from the bottom

image

@PureWeen PureWeen requested a review from a team as a code owner September 4, 2024 20:49
@rmarinho rmarinho merged commit 9522861 into main Sep 5, 2024
97 checks passed
@rmarinho rmarinho deleted the revert-23729-adjust_safearea branch September 5, 2024 09:59
PureWeen added a commit that referenced this pull request Sep 5, 2024
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Sep 5, 2024
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Oct 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants