mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-03-03 09:52:55 +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;
|
||||
frame.origin.y = 0;
|
||||
if (!self.statusBarOverlaysWebView) {
|
||||
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
|
||||
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