Skip to content

Commit

Permalink
fix full width cell layout problems on 3x devices
Browse files Browse the repository at this point in the history
  • Loading branch information
rickytan committed Oct 17, 2019
1 parent be49dd2 commit ab93f6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab93f6a

Please sign in to comment.