[WinUI] [UIKit] CollectionView Items do not resize if the inner content changes. #13451
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
If you modify an existing CollectionView item on iOS, Catalyst, or WinUI the outer cell does not resize to reflect the new content. This should similar, if not the same, as #12118, but with a simple reproduction step (If that's the case, IMO, I would close that issue and redirect it to this one, since it's broader in scope).
For WinUI in my sample, the content doesn't directly overlap, rather there are gaps present between the cells as you add or remove them. With enough changes of the inner cells and their orders, you can cause the contents to overlap.
repro.mp4
Steps to Reproduce
Link to public reproduction project repository
https://github.com/drasticactions/MauiRepros/tree/main/MauiCollectionViewResize
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Windows, macOS
Affected platform versions
All affected platform versions.
Did you find any workaround?
Somehow force the window or control to resize. On Windows/Mac you can resize the window, but that's not possible on iPhone.
For WinUI, ListView does not seem to suffer from this overlap issue, and it spaces its items correctly between them. On iOS/Catalyst the cells still don't resize, but adding a new one causes the previous cells to resize, "fixing" the issue.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: