UICollectionViewFlowLayout with vertical scrolling misplaces elements in 1st col
||Product Version:||6.0 (10A403)|
When using an UICollectionViewFlowLayout with a combination of itemSize, minimumInteritemSpacing and sectionInset that exactly matches the width of the UICollectionView and a default vertical scrollDirection the layout misplaces the items in the first column. The items are instead placed on the border of the previous row as an additional column.
Steps to Reproduce:
Create a simple UICollectionView with UICollectionViewFlowLayout with the following properties and enough cells to make the collectionView scroll. Scroll down and back up the collectionView to see the misplaced cells.
collectionView.bounds = (0.0f, 0.0f, 320.0f, 460.0f)
scrollDirection = UICollectionViewScrollDirectionVertical
itemSize = CGSizeMake(90.0f, 110.0f)
minimumInteritemSpacing = 10.0f
sectionInset = UIEdgeInsetsMake(15.0f, 15.0f, 15.0f, 15.0f);
This can be reproduced with every combination of itemSize, minimumInteritemSpacing and sectionInset for a multi column layout that exactly matches the width of the collectionView.
A collectionView layout with 3 columns that scrolls vertically
Sometimes the item in the first column is misplaced as a fourth column of the previous row.
A sample project and a screenshot are attached to this radar. Compile this project and simply scroll down & up multiple times with different speeds.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!