Skip to content

Commit

Permalink
Fix headers overlapping in empty sections
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
joelekstrom committed Dec 24, 2018
1 parent 41dbf1c commit 70229e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions JEKScrollableSectionCollectionViewLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ - (void)prepareLayout
{
CGRect bounds = CGRectZero;
bounds.size.width = self.insets.left;
bounds.size.height = self.headerSize.height;
NSMutableArray<NSValue *> *itemFrames = [NSMutableArray new];
for (NSUInteger item = 0; item < self.numberOfItems; ++item) {
CGSize size = [self.itemSizes[item] CGSizeValue];
Expand Down
2 changes: 1 addition & 1 deletion JEKScrollableSectionCollectionViewLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
Pod::Spec.new do |spec|
spec.name = 'JEKScrollableSectionCollectionViewLayout'
spec.version = '1.1.0'
spec.version = '1.1.1'
spec.platform = :ios, '9.1'
spec.homepage = 'https://github.com/accatyyc/JEKScrollableSectionCollectionViewLayout'
spec.authors = { 'Joel Ekström' => '[email protected]' }
Expand Down

0 comments on commit 70229e0

Please sign in to comment.