Skip to content

Commit

Permalink
[pagingscrollview] Fix the default clipping state of the paging scrol…
Browse files Browse the repository at this point in the history
…l view.
  • Loading branch information
jverkoey committed Apr 22, 2015
1 parent 9bac822 commit 2520789
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pagingscrollview/src/NIPagingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ - (void)commonInit {
_scrollView = [[UIScrollView alloc] initWithFrame:self.bounds];
_scrollView.pagingEnabled = YES;
_scrollView.scrollsToTop = NO;

// Allows the scroll view to show adjacent pages...
_scrollView.clipsToBounds = NO;
// ...while still clipping contents to the bounds of the paging scroll view.
self.clipsToBounds = YES;

_scrollView.autoresizingMask = UIViewAutoresizingFlexibleDimensions;

Expand Down

0 comments on commit 2520789

Please sign in to comment.