mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-03-03 09:52:55 +08:00
Use correct statusbar height for landscape orientation in iOS >= 8
This commit is contained in:
parent
2e8164693e
commit
07b55b7529
@ -370,7 +370,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
CGRect frame = self.webView.frame;
|
||||
frame.origin.y = 0;
|
||||
if (!self.statusBarOverlaysWebView) {
|
||||
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
|
||||
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) {
|
||||
frame.size.height += statusBarFrame.size.width;
|
||||
} else {
|
||||
frame.size.height += statusBarFrame.size.height;
|
||||
|
Loading…
Reference in New Issue
Block a user