mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-31 18:52:53 +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;
|
CGRect frame = self.webView.frame;
|
||||||
frame.origin.y = 0;
|
frame.origin.y = 0;
|
||||||
if (!self.statusBarOverlaysWebView) {
|
if (!self.statusBarOverlaysWebView) {
|
||||||
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) {
|
frame.size.height += MIN(statusBarFrame.size.height, statusBarFrame.size.width);
|
||||||
frame.size.height += statusBarFrame.size.width;
|
|
||||||
} else {
|
|
||||||
frame.size.height += statusBarFrame.size.height;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.webView.frame = frame;
|
self.webView.frame = frame;
|
||||||
|
Loading…
Reference in New Issue
Block a user