Skip to content

Commit 8ea33ed

Browse files
authored
Merge pull request #29 from masonicboom/patch-1
Support iPad Split View
2 parents 116b9a1 + bd20732 commit 8ea33ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ios/CDVIonicKeyboard.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ - (void)_updateFrame
190190
_paddingBottom = _paddingBottom + 20;
191191
}
192192
NSLog(@"CDVIonicKeyboard: updating frame");
193-
CGRect f = [[UIScreen mainScreen] bounds];
193+
// NOTE: to handle split screen correctly, the application's window bounds must be used as opposed to the screen's bounds.
194+
CGRect f = [[[[UIApplication sharedApplication] delegate] window] bounds];
194195
CGRect wf = self.webView.frame;
195196
switch (self.keyboardResizes) {
196197
case ResizeBody:

0 commit comments

Comments
 (0)