You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
I tried converting my bindable stack layouts to collection views but am running into several problems again preventing me from using them.
I have items in the collection view that are of different sizes, so ItemSizingStrategy is MeasureAllItems. I have a LinearItemsLayout with ItemSpacing of 12. When the view loads all the items seem to have double item spacing. As soon as I scroll the view even slightly all items jump to their correct positions.
I have a video of the issue, please let me know where to send it if it would be useful.
The issue only started to happen once I replaced a bindable layout with a collection view.
XF 5 latest preview, iOS (didn't test on Android).
The text was updated successfully, but these errors were encountered:
I think this issue is related to #12555 which may be both caused by #11511 and #10842.
Furthermore, I can not reproduce this with:
A collection view if the item sizing strategy is set to measure first item (unfortunately I can't do it here as the items have different sizes)
A list view
A bindable layout
So I think all of these issues have to do with bugging MeasureAllItems in CollectionView only, possibly when using data templates of different heights (or merely if the items themselves have different heights, haven't tested).
If this could be fixed CollectionView would become the de-facto collection component, but unfortunately I can't use it at all with these issues. Please please prioritise this as it completely defeats the purpose of the collection view and the other means have been deprecated.
I found a fix for this -- one of my data templates had height set to * instead of Auto, and changing it to Auto fixed this. What is strange, however, is that with * CollectionView requires the slight scroll for the items to align properly -- this does not happen with for example bindable layouts so I do think this is an issue in CollectionView still, but I am just happy it works now.
I tried converting my bindable stack layouts to collection views but am running into several problems again preventing me from using them.
I have items in the collection view that are of different sizes, so ItemSizingStrategy is MeasureAllItems. I have a LinearItemsLayout with ItemSpacing of 12. When the view loads all the items seem to have double item spacing. As soon as I scroll the view even slightly all items jump to their correct positions.
I have a video of the issue, please let me know where to send it if it would be useful.
The issue only started to happen once I replaced a bindable layout with a collection view.
XF 5 latest preview, iOS (didn't test on Android).
The text was updated successfully, but these errors were encountered: