mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-05-14 22:54:07 +08:00
ios: Fix hide to adjust webview's frame only when status bar is not overlaying webview
This commit is contained in:
parent
ccb465f807
commit
6552bddfd1
@ -327,12 +327,13 @@ 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 (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
|
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
|
||||||
frame.size.height += statusBarFrame.size.width;
|
frame.size.height += statusBarFrame.size.width;
|
||||||
} else {
|
} else {
|
||||||
frame.size.height += statusBarFrame.size.height;
|
frame.size.height += statusBarFrame.size.height;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.webView.frame = frame;
|
self.webView.frame = frame;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user