Repository navigation
[iOS/Mac][Revert] CollectionView2 height-update fix (#38441) - #39855
Merged
kubaflo merged 1 commit intoNov 3, 2026
Merged
Conversation
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:29 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39855Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39855" |
This comment has been minimized.
This comment has been minimized.
Contributor
|
Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:30 — with
GitHub Actions
Inactive
kubaflo
approved these changes
Nov 3, 2026
SyedAbdulAzeemSF4852
marked this pull request as ready for review
November 3, 2026 15:30
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:31 — with
GitHub Actions
Inactive
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:33 — with
GitHub Actions
Inactive
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:35 — with
GitHub Actions
Inactive
SyedAbdulAzeemSF4852
temporarily deployed
to
copilot-pat-pool
November 3, 2026 15:35 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The timing change lacks automated regression coverage for an unconstrained, self-sizing CollectionView inside a vertical ScrollView, leaving the nested-scrolling fix unprotected.
1 open issue
What changed in this PR
Reverts #38441’s CollectionView2 layout-timing change on iOS and MacCatalyst to address the nested-scrolling regression reported in #39847.
Changes:
- Restores content-size checking to
ViewWillLayoutSubviews(). - Removes the
ViewDidLayoutSubviews()override and its platform API entries. - Deletes the grouped and ungrouped #38276 reproduction pages and UI tests.
| File | Description |
|---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38276.cs |
Removes ungrouped height-update tests. |
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38276_Grouped.cs |
Removes grouped height-update tests. |
src/Controls/tests/TestCases.HostApp/Issues/Issue38276.cs |
Removes the ungrouped reproduction page. |
src/Controls/tests/TestCases.HostApp/Issues/Issue38276_Grouped.cs |
Removes the grouped reproduction page. |
src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt |
Removes the MacCatalyst override entry. |
src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt |
Removes the iOS override entry. |
src/Controls/src/Core/Handlers/Items2/iOS/ItemsViewController2.cs |
Restores the content-size check before layout. |
Review effort: Balanced
|
|
||
| // Compositional layout can resolve estimated, self-sizing cells during layout. | ||
| // Check the updated content size after layout completes. | ||
| InvalidateMeasureIfContentSizeChanged(); |
This was referenced Nov 4, 2026
kubaflo
added a commit
that referenced
this pull request
Nov 13, 2026
…on backports (#40217) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change **Explicit release-target exception:** this PR intentionally targets the new `release/10.0.1xx-sr14` branch. `main`, `net11` and the inflight lanes are now .NET 11, so .NET 10 SR14 is cut from the SR13 release head (`release/10.0.1xx-sr14` was created at `54d76458e0`, the tip of `release/10.0.1xx-sr13`, which already includes all post-cut SR13 fixes #39830, #39855, #39879, #39891 and the servicing/stable configuration from #39774). This PR brings the .NET 10 changes needed since SR13: 1. **Backport #39887** – `[Windows] Prevent duplicate Shell startup navigation from stale tab selection events`. Fixes #39859 (regressed in 10.0.120); it was merged only to `main`. Clean `cherry-pick -x`. 2. **Backport #40132** – `Fix custom Shape.PathForBounds dispatch regression`. Fixes #40129 (regressed in 10.0.130); it was merged only to `candidate/11.0.1xx-sr2`. The unrelated .NET 11 `eng/release-rollover.json` change from that commit is excluded (file does not exist on the .NET 10 line). 3. **Version bump** – `PatchVersion` 130 → 140 in `eng/Versions.props`. Servicing label and `StabilizePackageVersion=true` are inherited from SR13. Reviewed and intentionally **not** included: - #40136 (`net10.0` Publish-Build-Assets cleanup): SR13 has no `Publish-Build-Assets` references, so nothing to remove. - #39882 (re-land of the CollectionView2 height fix): SR13 already carries the revert #39855 that fixed #39847; re-landing is a fix-forward, not a regression fix. - #40213 (`[net10.0][XSG]` CA2252 suppression, issue #40045): still open/unmerged; can be backported once approved. - Other `regressed-in-10.0.1x0` issues closed since the SR13 cut (#38622, #39557/#39681, #39722) are already fixed on SR13 or were fixed outside MAUI. Keep in draft pending review and CI. This PR does not tag, publish, or authorize a release; the internal dnceng mirror of `release/10.0.1xx-sr14` has not been created. #### Validation Using the pinned SDK `10.0.113` provisioned by `eng/common/dotnet.sh`: - `dotnet msbuild eng/Versions.props -getProperty:PatchVersion,SdkBandVersion,PreReleaseVersionLabel,StabilizePackageVersion,DotNetFinalVersionKind` → `140`, `10.0.100`, `servicing`, `true`, `release`. `xmllint --noout eng/Versions.props` passed. - `dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj -f net10.0 --filter FullyQualifiedName~StrokeShapeTests` (platform TFMs disabled): **passed 59/59**. With `Shape.cs` reverted to SR13: **failed 3/59** (the new `CustomShapeReimplementingIShape*` tests); restored: **passed 59/59**. - #39887 is Windows-only (`ShellItemHandler.Windows.cs` + Windows device test) and was not built locally on macOS; it relies on CI. ### Issues Fixed Fixes #39859 Fixes #40129 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> ---------
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Issues Fixed
Fixes #39847
Output
Before_Output.mov
After.mov