-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
CollectionView Items display issue when Header is resized on iOS #12429
Comments
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. |
I am experiencing this issue also. To add it is also occurring for the CollectionView footer as can be seen below: Reproduction link: https://github.com/eth-ellis/Issue-Repro/tree/main/MauiAppCollectionViewFooterResize @tranb3r Did you end up finding a workaround since raising? |
@eth-ellis
I've updated my sample project with a "fix" button. |
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on iOS platform with sample project. MauiAppCollectionViewHeaderResize |
I'm facing the same issue with .NET 8 and iOS 17.0. Any updates on this? CollectionViews with headers seems like quite a crucial thing to work properly! |
Confirmed still an issue in latest .NET 8. CollectionView is a fundamental view which is very important and it should work in these simple cases.... |
It appears this issue is still present. I see there was a PR for a potential fix two weeks ago, is there any update or workaround at this time? |
Bump, using workaround, but this def need fix. |
As the workaround is not working for us, this issue forced us to use bindable layouts, which induced a performance degradation. Therefore, this issue has high priority for us. |
@thisisthekap could you elaborate a bit on how you were able to get it to work? Not sure if I understand what you did. Still looking into if/how the workaround can somehow be used when using a HeaderTemplate. |
@michiel-nwa We replaced |
@thisisthekap Thanks, that is not what I was looking for. I ended up registering for BindingContextChanged and then PropertyChanged changes on the BindingContext in the HeaderTemplate. And then calling the invalidation from the workaround on every change. Seems to work for now. |
@michiel-nwa I haven't been able to fix it yet, could you give an example of what you did? |
@michiel-nwa How did you invalidate the layout and force it to redraw? A workaround described here: #12429 (comment) did this but the InvalidationTrigger enum is now internal.
|
@filyXplor @jaysidri I basically applied the given workaround in the sample code to my situation:
Far from ideal, but at least lets me continue until the issue is fixed. |
Our alternative "generic" solution that works in all our cases based on Handlers
|
#17885 The new CollectionViewHandler2 is recently available on net9, maybe could fix this.( '▿ ' )
|
Description
When the size of a CollectionView Header increases, it's displayed on top of Items, on iOS.
No issue on Android.
In this example, when clicking on the Add button, a row is added to the Header of the CollectionView (above the line), in order to increase the size of the Header. On Android, the Items (below the row) move down accordingly. On iOS, the Header size increases and is displayed on top of Items.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/tranb3r/Issues/tree/main/MauiAppCollectionViewHeaderResize
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.1
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: