diff --git a/src/ios/CDVIonicKeyboard.m b/src/ios/CDVIonicKeyboard.m index 9a7927c..75a62d1 100644 --- a/src/ios/CDVIonicKeyboard.m +++ b/src/ios/CDVIonicKeyboard.m @@ -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];