mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-19 01:12:49 +08:00
Don't use IsAtLeastiOSVersion macro to determine height
This commit is contained in:
parent
07b55b7529
commit
3e821abfc2
@ -370,11 +370,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
CGRect frame = self.webView.frame;
|
||||
frame.origin.y = 0;
|
||||
if (!self.statusBarOverlaysWebView) {
|
||||
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) {
|
||||
frame.size.height += statusBarFrame.size.width;
|
||||
} else {
|
||||
frame.size.height += statusBarFrame.size.height;
|
||||
}
|
||||
frame.size.height += MIN(statusBarFrame.size.height, statusBarFrame.size.width);
|
||||
}
|
||||
|
||||
self.webView.frame = frame;
|
||||
|
Loading…
Reference in New Issue
Block a user