steipete/PSTCollectionView — pull request #341 by alextud (2013-07-09 09:35:04+00:00)
Title: Dequeue CollectionCell - apply the attribute (bounds) only once.

The cell bounds will be set by the last method call ([cell applyLayoutAttributes:attributes]).

I have a collection view with different cell sizes and I did't bother updating layout.itemSize (50x50).

The problem appeared when I dequeue a new cell with size 1024x400. Then the cell is scaled down to 50x50 and all it's subviews that did have a height greater than 50 will be set to 0 (because of autoresizing mask). After applying the actual cell size, this view will have their height calculated incorrectly.

By removing that section of code, I don't see any side effects.

Thanks,
Alex