This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] CollectionView GridLayout items spacing #10585
Labels
a/collectionview
a/layout
e/3 🕒
3
in-progress
This issue has an associated pull request that may resolve it!
t/bug 🐛
Projects
Milestone
Description
When adding or removing items to collection view with GridItemsLayout and spacing between items, that spacing is not always correct. E.G. if we have Span = 2 and then remove first item in the row, the scond item will move to the left but will keep it's original horizontal spacing to the left even though there are no items to the left anymore.
It also appears that the last item has incorrect spacing as well
Steps to Reproduce
You can checkout https://github.com/domagojmedo/IMSCovid19Tracker/tree/bug with spacing set in HomePage. If instead of the spacings we set Margin = 5 on SwipeView it's all same size and no issues there.
Expected Behavior
Items in the CollectionView should add/remove items spacing depending on the surounding items.
Actual Behavior
Items appear to only set the spacing once and then keep it even after the collection changes
Basic Information
Screenshots
Before:
![WhatsApp Image 2020-05-05 at 22 40 45 (1)](https://user-images.githubusercontent.com/12157224/81114040-823dc380-8f21-11ea-812f-61a55b7e89d9.jpeg)
![WhatsApp Image 2020-05-05 at 22 40 45](https://user-images.githubusercontent.com/12157224/81114044-84078700-8f21-11ea-99af-7c6d55f57a63.jpeg)
After swiping to remove USA:
Reproduction Link
https://github.com/domagojmedo/IMSCovid19Tracker/tree/bug
Workaround
If I just set Margin on items it looks much better
The text was updated successfully, but these errors were encountered: