We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a203ac3 commit eba2357Copy full SHA for eba2357
Classes/CSStickyHeaderFlowLayout.m
@@ -151,11 +151,13 @@ - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
151
header = [self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader
152
atIndexPath:[NSIndexPath indexPathForItem:0 inSection:indexPath.section]];
153
154
- if (header) {
+ if (!CGSizeEqualToSize(CGSizeZero, header.frame.size)) {
155
[allItems addObject:header];
156
}
157
158
- [self updateHeaderAttributes:header lastCellAttributes:lastCells[indexPathKey]];
159
+ [self updateHeaderAttributes:header lastCellAttributes:lastCells[indexPathKey]];
160
+ }
161
}];
162
163
0 commit comments