Skip to content

Commit 62eb7f5

Browse files
praveenkumarkarunanithisheiksyedm
authored andcommitted
Update CollectionViewTests.iOS.cs
1 parent 9235fd5 commit 62eb7f5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,6 @@ Rect GetCollectionViewCellBounds(IView cellContent)
321321
}
322322

323323
// Regression test for https://github.com/dotnet/maui/issues/34635
324-
// PR #33908 changed RespondsToSafeArea() to exclude UICollectionView from the
325-
// UIScrollView descendant check, allowing CV cell content views to respond to
326-
// safe area. This caused Window.SafeAreaInsets (title bar ~41px on macOS) to be
327-
// applied to every cell, shifting content by 41px.
328-
// The fix ensures CV cell content views are treated as UIScrollView descendants
329-
// (since UICollectionView inherits from UIScrollView), so they do NOT respond
330-
// to safe area independently.
331324
[Fact("CollectionView cell MauiViews should be treated as UIScrollView descendants and not apply safe area independently")]
332325
[Category(TestCategory.CollectionView)]
333326
public async Task CollectionViewCellContentShouldBeScrollViewDescendant()

0 commit comments

Comments
 (0)