We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62cfacc + 72c39fd commit b6d511aCopy full SHA for b6d511a
src/ios/CDVKeyboard.m
@@ -173,7 +173,7 @@ - (void)shrinkViewKeyboardWillChangeFrame:(NSNotification*)notif
173
174
self.webView.scrollView.scrollEnabled = YES;
175
176
- CGRect screen = [[UIScreen mainScreen] bounds];
+ CGRect screen = [[[UIApplication sharedApplication] keyWindow] frame];
177
CGRect statusBar = [[UIApplication sharedApplication] statusBarFrame];
178
CGRect keyboard = ((NSValue*)notif.userInfo[@"UIKeyboardFrameEndUserInfoKey"]).CGRectValue;
179
0 commit comments