Skip to content

[net11][iOS/MacCatalyst] Fix horizontal Grid CollectionView intrinsic height - #40574

Merged
kubaflo merged 1 commit into
net11from
fix-40466-net11
Nov 24, 2026
Merged

kubaflo merged 1 commit into
net11from
fix-40466-net11

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Ports the exact fix and regression tests from #40572 to net11 for review. Original fix by @devanathan-vaithiyanathan. The SR2 PR remains separate.

For horizontal Grid CollectionViews on iOS and Mac Catalyst, measure the first available item when the height is unbounded, skip empty leading groups, and account for the row span and vertical spacing. The existing linear and finite-height behavior is unchanged. Regression coverage includes a four-row grid in an Auto row and a grouped grid with an empty first group.

The local iOS device-test build was blocked by a missing workload in the repository SDK (NETSDK1147), so the simulator tests did not run. Mac Catalyst was not run locally.

Issues Fixed

Fixes #40466

Port the fix from #40572.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:24 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40574

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40574"

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:24 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:25 — with GitHub Actions Inactive
@kubaflo
kubaflo merged commit 5a03607 into net11 Nov 24, 2026
10 of 20 checks passed
@kubaflo
kubaflo deleted the fix-40466-net11 branch November 24, 2026 13:26
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:27 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:28 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:29 — with GitHub Actions Inactive
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
… height (dotnet#40574)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Ports the exact fix and regression tests from dotnet#40572 to `net11` for
review. Original fix by @devanathan-vaithiyanathan. The SR2 PR remains
separate.

For horizontal Grid CollectionViews on iOS and Mac Catalyst, measure the
first available item when the height is unbounded, skip empty leading
groups, and account for the row span and vertical spacing. The existing
linear and finite-height behavior is unchanged. Regression coverage
includes a four-row grid in an Auto row and a grouped grid with an empty
first group.

The local iOS device-test build was blocked by a missing workload in the
repository SDK (NETSDK1147), so the simulator tests did not run. Mac
Catalyst was not run locally.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes dotnet#40466

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — e3e06173 Deployed Nov 24, 2026 by kubaflo via conclusion #3254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants