From ab93f6a25ca728f129470f45a30f41634e50a939 Mon Sep 17 00:00:00 2001 From: Ricky Tan Date: Thu, 17 Oct 2019 22:09:45 +0800 Subject: [PATCH] fix full width cell layout problems on 3x devices fix #26 --- .../UICollectionViewLeftAlignedLayout.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UICollectionViewLeftAlignedLayout/UICollectionViewLeftAlignedLayout.m b/UICollectionViewLeftAlignedLayout/UICollectionViewLeftAlignedLayout.m index c4bf2b6..5edefa8 100644 --- a/UICollectionViewLeftAlignedLayout/UICollectionViewLeftAlignedLayout.m +++ b/UICollectionViewLeftAlignedLayout/UICollectionViewLeftAlignedLayout.m @@ -73,7 +73,7 @@ - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSInde CGFloat previousFrameRightPoint = previousFrame.origin.x + previousFrame.size.width; CGRect currentFrame = currentItemAttributes.frame; CGRect strecthedCurrentFrame = CGRectMake(sectionInset.left, - currentFrame.origin.y, + currentFrame.origin.y + FLT_EPSILON, layoutWidth, currentFrame.size.height); // if the current frame, once left aligned to the left and stretched to the full collection view