mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-31 10:35:41 +08:00
CB-13476 (iOS): handle double size statusbar on SDK 10 for iOS 11
This closes #90
This commit is contained in:
parent
cdc9295b30
commit
c45331b955
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user