Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/ios/CDVIonicKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ - (void)_updateFrame

int _paddingBottom = (int)self.paddingBottom;

if (statusBarHeight == 40) {
if (statusBarHeight == 40 || statusBarHeight == 20) {
_paddingBottom = _paddingBottom + 20;
}
if (statusBarHeight == 44) {
// safe area bottom
_paddingBottom += 39;
}
NSLog(@"CDVIonicKeyboard: updating frame");
// NOTE: to handle split screen correctly, the application's window bounds must be used as opposed to the screen's bounds.
CGRect f = [[[[UIApplication sharedApplication] delegate] window] bounds];
Expand Down