diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index 9aed06e..8916e0d 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -101,7 +101,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; _statusBarOverlaysWebView = YES; // default [self initializeStatusBarBackgroundView]; - + [self styleLightContent:nil]; // match default backgroundColor of #000000 self.viewController.view.autoresizesSubviews = YES; @@ -150,7 +150,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle; if (statusBarOverlaysWebView) { [_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 {