From 2dc959ad8fe16584d9b1b904c3479f27b0994016 Mon Sep 17 00:00:00 2001 From: Matej Kramny Date: Tue, 29 Jan 2019 15:09:42 +0800 Subject: [PATCH] fix #62 --- src/ios/CDVIonicKeyboard.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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];