mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-03-04 02:52:57 +08:00
Merge branch 'master' of https://github.com/cwannerstedt/cordova-plugin-statusbar
This commit is contained in:
commit
c4dcdacf6b
@ -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)) {
|
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