You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/07/28 19:46:00 UTC

[2/3] cordova-plugin-statusbar git commit: Don't use IsAtLeastiOSVersion macro to determine height

Don't use IsAtLeastiOSVersion macro to determine height


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/3e821abf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/3e821abf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/3e821abf

Branch: refs/heads/master
Commit: 3e821abfc2888b77a3e86657698a2d6774152793
Parents: 07b55b7
Author: Christian Wannerstedt <cw...@contractor.ea.com>
Authored: Wed Jul 1 13:49:50 2015 +0200
Committer: Christian Wannerstedt <cw...@contractor.ea.com>
Committed: Wed Jul 1 13:49:50 2015 +0200

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/3e821abf/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index f83ed03..3fac9a0 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -370,11 +370,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
             CGRect frame = self.webView.frame;
             frame.origin.y = 0;
             if (!self.statusBarOverlaysWebView) {
-                if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) {
-                    frame.size.height += statusBarFrame.size.width;
-                } else {
-                    frame.size.height += statusBarFrame.size.height;
-                }
+                frame.size.height += MIN(statusBarFrame.size.height, statusBarFrame.size.width);
             }
 
             self.webView.frame = frame;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org