mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-04-22 05:36:22 +08:00
CB-6186 - Statusbar problems in Landscape Mode iOS 7
This commit is contained in:
parent
3055b675a8
commit
69c1aee5ce
@ -101,7 +101,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
_statusBarOverlaysWebView = YES; // default
|
_statusBarOverlaysWebView = YES; // default
|
||||||
|
|
||||||
[self initializeStatusBarBackgroundView];
|
[self initializeStatusBarBackgroundView];
|
||||||
|
|
||||||
[self styleLightContent:nil]; // match default backgroundColor of #000000
|
[self styleLightContent:nil]; // match default backgroundColor of #000000
|
||||||
self.viewController.view.autoresizesSubviews = YES;
|
self.viewController.view.autoresizesSubviews = YES;
|
||||||
|
|
||||||
@ -150,7 +150,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
if (statusBarOverlaysWebView) {
|
if (statusBarOverlaysWebView) {
|
||||||
|
|
||||||
[_statusBarBackgroundView removeFromSuperview];
|
[_statusBarBackgroundView removeFromSuperview];
|
||||||
self.webView.frame = bounds;
|
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
|
||||||
|
self.webView.frame = CGRectMake(0, 0, bounds.size.height, bounds.size.width);
|
||||||
|
} else {
|
||||||
|
self.webView.frame = bounds;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user