Skip to content

Fix iOS ScrollView content being measured with non-infinite constraints during LayoutSubviews pass #27298

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

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

albyrock87
Copy link
Contributor

@albyrock87 albyrock87 commented Jan 23, 2025

Description of Change

With #26763 we removed the middle layer (a MauiView) which was sitting between the MauiScrollView and its content.

That middle layer was important because it prevented the content to be measured with Bounds during the LayoutSubviews pass.

This PR simply excludes the cross platform measure pass when the parent is MauiScrollView (same thing happening with MauiView).

In fact, now MauiScrollView can be considered a cross platform layout.

The UI test covers all platforms, so this should be helpful in verifying we have the same behavior in case we refactor also other platforms.

Issues Fixed

Fixes #27169

@albyrock87 albyrock87 requested a review from a team as a code owner January 23, 2025 11:57
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 23, 2025
Copy link
Contributor

Hey there @albyrock87! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@PureWeen
Copy link
Member

/azp run

@PureWeen PureWeen added this to the .NET 9 SR3.1 milestone Jan 23, 2025
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

/backport to release/9.0.1xx-sr3

Copy link
Contributor

Started backporting to release/9.0.1xx-sr3: https://github.com/dotnet/maui/actions/runs/12937847968

@PureWeen PureWeen merged commit b5a3d25 into dotnet:main Jan 24, 2025
104 checks passed
@albyrock87 albyrock87 deleted the fix-27169 branch January 26, 2025 00:01
@PureWeen PureWeen modified the milestones: .NET 9 SR3.1, .NET 9 SR4 Jan 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[iOS][9.0.30] View getting clipped while it shouldn't?
3 participants