Skip to content

Commit eb8f575

Browse files
committed
Fixes #44 - reloadData not updating the content bounds.
1 parent aa64ee0 commit eb8f575

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SCPageViewController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SCPageViewController'
3-
s.version = '2.0.13'
3+
s.version = '2.0.14'
44
s.platform = :ios
55
s.ios.deployment_target = '6.0'
66

SCPageViewController/SCPageViewController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ - (void)reloadData
250250
if(oldNumberOfPages >= self.numberOfPages) {
251251
NSUInteger index = MAX(0, (NSInteger)self.numberOfPages - 1);
252252
[self navigateToPageAtIndex:index animated:NO completion:nil];
253-
} else {
254-
[self _updateBoundsAndConstraints];
255-
[self _tilePages];
256253
}
254+
255+
[self _updateBoundsAndConstraints];
256+
[self _tilePages];
257257
}
258258

259259
- (void)navigateToPageAtIndex:(NSUInteger)pageIndex

0 commit comments

Comments
 (0)