Skip to content

Commit

Permalink
Merge pull request #16 from mbackschat/master
Browse files Browse the repository at this point in the history
Fix issue to allow page scrolling again on iOS (fix #14)
  • Loading branch information
cjpearson committed Jan 14, 2016
2 parents 27d6deb + 4e5d575 commit d3a13fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ios/CDVKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ - (void)shrinkViewKeyboardWillChangeFrame:(NSNotification*)notif

- (void)scrollViewDidScroll:(UIScrollView*)scrollView
{
if (_shrinkView) {
scrollView.bounds = self.webView.bounds;
if (_shrinkView && _keyboardIsVisible) {
CGFloat maxY = scrollView.contentSize.height - scrollView.bounds.size.height;
if (scrollView.bounds.origin.y > maxY) {
scrollView.bounds = CGRectMake(scrollView.bounds.origin.x, maxY,
scrollView.bounds.size.width, scrollView.bounds.size.height);
}
}
}

Expand Down

0 comments on commit d3a13fa

Please sign in to comment.