From 69c1aee5ceba76fce49bfa70961fb41aa3d140b8 Mon Sep 17 00:00:00 2001 From: Ryan Willoughby Date: Mon, 24 Feb 2014 22:30:04 -0800 Subject: [PATCH] CB-6186 - Statusbar problems in Landscape Mode iOS 7 --- src/ios/CDVStatusBar.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {