cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/3] cordova-plugin-statusbar git commit: Don't use IsAtLeastiOSVersion macro to determine height
Date Tue, 28 Jul 2015 17:46:00 GMT
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 <cwannerstedt@contractor.ea.com>
Authored: Wed Jul 1 13:49:50 2015 +0200
Committer: Christian Wannerstedt <cwannerstedt@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


Mime
View raw message