You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/03/13 20:58:56 UTC

[27/35] git commit: CB-6186 - Statusbar problems in Landscape Mode iOS 7

CB-6186 - Statusbar problems in Landscape Mode iOS 7



Project: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/commit/69c1aee5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/tree/69c1aee5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/diff/69c1aee5

Branch: refs/heads/master
Commit: 69c1aee5ceba76fce49bfa70961fb41aa3d140b8
Parents: 3055b67
Author: Ryan Willoughby <ry...@adobe.com>
Authored: Mon Feb 24 22:30:04 2014 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Mar 6 15:37:08 2014 -0800

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-statusbar/blob/69c1aee5/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
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 {