CB-13476 (iOS): handle double size statusbar on SDK 10 for iOS 11

This closes #90
This commit is contained in:
Julio Cesar Sanchez Hernandez 2017-10-20 16:40:46 +02:00 committed by Julio César
parent cdc9295b30
commit c45331b955

View File

@ -475,6 +475,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
if (!self.statusBarOverlaysWebView) {
frame.origin.y = height;
} else {
frame.origin.y = height >= 20 ? height - 20 : 0;
if (isIOS11) {
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
if (@available(iOS 11.0, *)) {
@ -487,9 +488,6 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
}
}
#endif
} else {
// Even if overlay is used, we want to handle in-call/recording/hotspot larger status bar
frame.origin.y = height >= 20 ? height - 20 : 0;
}
}
frame.size.height -= frame.origin.y;