diff --git a/src/ios/CDVKeyboard.m b/src/ios/CDVKeyboard.m index 3c04548..4cb7ae3 100644 --- a/src/ios/CDVKeyboard.m +++ b/src/ios/CDVKeyboard.m @@ -173,7 +173,7 @@ - (void)shrinkViewKeyboardWillChangeFrame:(NSNotification*)notif self.webView.scrollView.scrollEnabled = YES; - CGRect screen = [[UIScreen mainScreen] bounds]; + CGRect screen = [[[UIApplication sharedApplication] keyWindow] frame]; CGRect statusBar = [[UIApplication sharedApplication] statusBarFrame]; CGRect keyboard = ((NSValue*)notif.userInfo[@"UIKeyboardFrameEndUserInfoKey"]).CGRectValue;