On iOS, CollectionView with GridItemsLayout and Span set is centering the item when the collection has only one item. #29595
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
i/regression
This issue described a confirmed regression on a currently supported version
p/0
Work that we can't release without
platform/ios
potential-regression
This issue described a possible regression on a currently supported version., verification pending
regressed-in-9.0.60
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Description
I have a CollectionView with Span=3, and it was working correctly. However, after updating to MAUI version 9.0.70, I'm experiencing an issue on iOS: the CollectionView centers the item when the collection contains only one item.
I am using the FFImageLoading:
PackageReference Include="FFImageLoading.Maui" Version="1.2.7"
If I replace ffimageloading:CachedImage with the default Image, the issue does not occur.
Note: This was working as expected in MAUI version 9.0.40 and 9.0.50.
iOS:
Android:
Steps to Reproduce
1.Create a CollectionView with GridItemsLayout and set Span=3.
2.In the item template use the ffimageloading:CachedImage.
3.Set the item source with only one item.
Link to public reproduction project repository
https://github.com/jhovelnu/MauiApp2Net9/tree/CollectionViewSpan
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.50 SR5
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
For now, the only workaround is to replace ffimageloading:CachedImage with Image.
Relevant log output
The text was updated successfully, but these errors were encountered: