cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [27/35] git commit: CB-6186 - Statusbar problems in Landscape Mode iOS 7
Date Thu, 13 Mar 2014 23:14:40 GMT
CB-6186 - Statusbar problems in Landscape Mode iOS 7



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

Branch: refs/heads/dev
Commit: 69c1aee5ceba76fce49bfa70961fb41aa3d140b8
Parents: 3055b67
Author: Ryan Willoughby <ryan.willoughby@adobe.com>
Authored: Mon Feb 24 22:30:04 2014 -0800
Committer: Shazron Abdullah <shazron@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-plugin-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 {
 


Mime
View raw message