[Issue-Resolver] Added test for Flyout CollectionView alignment (issue 30483) #33284
+177
−0
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.
Introduces a new Shell-based sample and automated UI test for Issue 30483, which addresses misalignment of the first item in a CollectionView within the flyout menu on iOS. The sample includes a custom flyout header, content, and footer, and the test verifies that the first item is properly aligned below the header.
Issues Fixed
Fixes #30483
This issue is no longer present in .NET 10, but the test helps guard against potential future regressions.
Issue #30483 Resolution Summary
Status: ✅ Already Fixed (No Code Changes Needed)
Investigation Date: December 24, 2025
Tested On: iOS 18.5 (iPhone Xs)
Original Report: Issue occurred on iPhone 15 iOS 17.2+, worked on iPhone 13 iOS 15.5
Investigation Results
Test Created
Created reproduction test page and automated UI test:
src/Controls/tests/TestCases.HostApp/Issues/Issue30483.xamlsrc/Controls/tests/TestCases.HostApp/Issues/Issue30483.xaml.cssrc/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue30483.csTest Results
Platform: iOS 18.5 (iPhone Xs)
Result: ✅ Test PASSED
The gap of -1 pixel (slight overlap) indicates correct alignment. The first CollectionView item is positioned immediately below the FlyoutHeader, which is the expected behavior.
Analysis
The issue was reported to occur specifically on:
Possible Explanations:
Fixed in iOS 18.x: The issue may have been an iOS 17.x-specific bug that Apple fixed in iOS 18.0+
Fixed by another PR: The issue may have been resolved by another PR between when it was reported (July 2025) and now (December 2025)
Device-specific: The issue may have been specific to iPhone 15 series with iOS 17.x
Note: I was unable to test on iPhone 15 with iOS 17.2 as that runtime is not available in my environment.
Original Issue Details
Reported: July 8, 2025
Regression Started: .NET MAUI 9.0.51
Last Known Working: .NET MAUI 9.0.50
Root Cause (Hypothesized):
Test Coverage Added
The test files created provide regression coverage for:
Assertion: Gap between header bottom and first item top must be < 50px
Recommendation
Files Added (for regression testing)
Screen.Recording.2025-12-24.at.14.08.40.mov