Skip to content

Commit

Permalink
Fix issue to allow page scrolling again on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mbackschat committed Jan 7, 2016
1 parent 27d6deb commit bcc0b65
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 bcc0b65

Please sign in to comment.