-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Items in grouped CollectionView not positioned correctly on iOS #10436
Comments
@cristiproj Thanks for the reproduction sample. |
Same problem here, but my scenario is more simple. I have a grouped list of items with a GridItemsLayout. When I add Span="2" to get nice 2x2 boxes, the rendering is all screwed up. The items render over top of each other and jump around when scrolling. I can't roll back past 4.5.0.356 to see when this bug was introduced because I need the new FontExport stuff. But I confirmed this bug exists in the latest beta available (4.6.0.616-pre4) |
I think the bug is also related to the iOS version. As I wrote in the issue, on iOS 12.2 the collectionview is rendered correctly, but not on 13.4. |
A possible workaround is using a listview and flexlayout for the child items. Small sample project for testing: https://github.com/cristiproj/ListViewScheduleTest. |
Thank you, @cristiproj ! |
I have the same issue on the iPhone 8 emulator (iOS13.5) with a CollectionView that has a vertical GridItemsLayout with a span of 2. The items are stacked and glitched and move while scrolling. Issue #8738, #9000 from last year and #10971, #11011 from last week also describe a similar issue. Please give these grouping issues with the CollectionView some priority, I have opened issue #8383 in November last year and it is still not fixed. |
any Update? |
found a solution? |
No, but I've noticed that the issue doesn't appear with a span of 2 in the latest iOS + X.Forms version, maybe that was fixed in the new iOS version. The issue is still present with a span of 3 or more, along with other issues with grouping. I've used a workaround by binding to a 2 dimensional array with a single column CollectionView, but that involves duplicate code and hurts performance. Since this is an officially supported feature of the CollectionView, I thought this would be fixed in the X.Forms 5.0 release, but all the issues are still open unfortunately. I hope the Forms team can confirm that the grouping issues can be fixed in a service release this year. |
I've just tested this issue. |
Awesomesauce! Thank you so much! |
Description
I am using grouped CollectionView with GridItemsLayout, with a span of 4.
The first time the page is loaded all the items are on the first column (screenshot 1). After trying to scroll, all the items are rearranged in the 4 column layout. But, the first element is incorrectly (screenshot 2).
The issue only happens on iOS. I tested in the simulator:
Steps to Reproduce
Expected Behavior
The items are displayed correctly in the groupings according to the settings in the griditemlayout. With no awkward spaces.
Actual Behavior
The items are not displayed correctly, not when the page is first loaded and not when scrolling
Basic Information
Screenshots
Screenshot 1
![image](https://user-images.githubusercontent.com/63459725/80194760-89acc500-8623-11ea-866e-d41f42de79d4.png)
![image](https://user-images.githubusercontent.com/63459725/80194778-8fa2a600-8623-11ea-8a2a-ed333315d9c3.png)
Screenshot 2
Reproduction Link
https://github.com/cristiproj/collectionviewissue
Workaround
I have found found a possible workaround in using a listview with a datatemplate containting a flexlayout. Unfortunately, the items in the flexlayout are not arranged as nicely as in the collectionview. A small sample project can be found here: https://github.com/cristiproj/ListViewScheduleTest.
I think, another possible workaround would be by using a custom layout, but I did not look at it.
The text was updated successfully, but these errors were encountered: