Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinUI] [UIKit] CollectionView Items do not resize if the inner content changes. #13451

Open
drasticactions opened this issue Feb 20, 2023 · 5 comments
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

Comments

@drasticactions
Copy link
Contributor

drasticactions commented Feb 20, 2023

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

  1. Clone https://github.com/drasticactions/MauiRepros/tree/main/MauiCollectionViewResize
  2. Run the sample

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

@drasticactions drasticactions added the t/bug Something isn't working label Feb 20, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Feb 20, 2023
@ghost
Copy link

ghost commented Feb 20, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@Zhanglirong-Winnie Zhanglirong-Winnie added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jun 8, 2023
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with 17.6 Preview (17.6 build 1539). Can repro on macOS with sample project.
MauiRepros-main.zip
13451 macOS

@eengstroem
Copy link

I believe I'm experiencing the same issue here. It seems to work with android. The link has a link to a reproduction repo.

@eengstroem
Copy link

Is there some kind of workaround?

@Pughgramming
Copy link

Pughgramming commented Apr 25, 2024

Is there an update on this? I've seen that there is a fix incoming for a similar issue regarding the header here, but this is more related to the items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants