Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,12 @@ - (UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind
CGFloat deltaX = [self.deltaXInSection[@( indexPath.section )] floatValue];

CGFloat additionalHeight = 10;
CGFloat height = self.interItemSpacingY + additionalHeight;
CGFloat height = self.interItemSpacingY + additionalHeight;;

if(height <= 10){
height = additionalHeight * 2;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should match existing file indenting and code style (i.e. tab indentation, curly braces on new lines aligned with start of block, etc.). This is just good practice when working in someone elses code base.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird that it did that. When I edited it it was the same code style. Thanks for telling me tho next time I'll be sure to take a better look at it. Also after some more testing with it it seems that this bug occurred because of the way I set up my layout


CGFloat width = (height / 3) * 5;

if (cellsPerRowInSection == 1)
Expand Down