Skip to content

Commit b6d511a

Browse files
authored
Merge pull request #72 from diiiary/master
bug fixed: support iPad split screen
2 parents 62cfacc + 72c39fd commit b6d511a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/CDVKeyboard.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ - (void)shrinkViewKeyboardWillChangeFrame:(NSNotification*)notif
173173

174174
self.webView.scrollView.scrollEnabled = YES;
175175

176-
CGRect screen = [[UIScreen mainScreen] bounds];
176+
CGRect screen = [[[UIApplication sharedApplication] keyWindow] frame];
177177
CGRect statusBar = [[UIApplication sharedApplication] statusBarFrame];
178178
CGRect keyboard = ((NSValue*)notif.userInfo[@"UIKeyboardFrameEndUserInfoKey"]).CGRectValue;
179179

0 commit comments

Comments
 (0)