Collection view with horizontal grid layout has extra space on right (end) of collection #25433
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I've noticed that, on iOS, there is extra space to the right of items in a collection view with an horizontal grid layout.
These two collections have equivalent items sources that have undergone the same modification events:
When I select the first one in the visual tree, there is no extra space...
When I select the second one in the visual tree, there is a bunch of extra space...
The apple store folks seem to be persnickety about how things look, so this seems like it might be an issue.
Steps to Reproduce
Below is all the code required to reproduce this. I've reproduced it running an iOS simulator of an iPhone 16 with iOS 18 via the Pair with Mac feature. I tried several versions of MAUI, including the (now) current version: 8.0.92.
MainPage.xaml
MainPage.xaml.cs
Link to public reproduction project repository
No response
Version with bug
8.0.92 SR9.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
If you just want a horizontal strip of items, you can use a linear item layout and make sure the width of all the items is uniform.
Relevant log output
n/a
The text was updated successfully, but these errors were encountered: