with xib cell width set to 200, the first UICollectionViewCell in the array of UICollectionViewLayoutAttributes returned in [super layoutAttributesForElementsInRect:rect] does not adhere to the value set on the collection view's sectionInset.left property.
The first cell's origin.x should be 20 but is instead returned higher, causing its origin.x to be set to 0 by the existing logic. This only happens with the first cell returned for each call of this method.
In the example project (ERViewController) under the following conditions:
with xib cell width set to
200
, the first UICollectionViewCell in the array ofUICollectionViewLayoutAttributes
returned in[super layoutAttributesForElementsInRect:rect]
does not adhere to the value set on the collection view'ssectionInset.left
property.The first cell's
origin.x
should be20
but is instead returned higher, causing itsorigin.x
to be set to0
by the existing logic. This only happens with the first cell returned for each call of this method.