Skip to content

Commit

Permalink
Fixes #44 - reloadData not updating the content bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 28, 2018
1 parent aa64ee0 commit eb8f575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SCPageViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SCPageViewController'
s.version = '2.0.13'
s.version = '2.0.14'
s.platform = :ios
s.ios.deployment_target = '6.0'

Expand Down
6 changes: 3 additions & 3 deletions SCPageViewController/SCPageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ - (void)reloadData
if(oldNumberOfPages >= self.numberOfPages) {
NSUInteger index = MAX(0, (NSInteger)self.numberOfPages - 1);
[self navigateToPageAtIndex:index animated:NO completion:nil];
} else {
[self _updateBoundsAndConstraints];
[self _tilePages];
}

[self _updateBoundsAndConstraints];
[self _tilePages];
}

- (void)navigateToPageAtIndex:(NSUInteger)pageIndex
Expand Down

0 comments on commit eb8f575

Please sign in to comment.