cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: [CB-4806] Update splashscreen image bounds for iOS 7
Date Tue, 17 Sep 2013 00:26:58 GMT
Updated Branches:
  refs/heads/dev 5f83eda5e -> 1111c8b3b


[CB-4806] Update splashscreen image bounds for iOS 7


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/1111c8b3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/1111c8b3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/1111c8b3

Branch: refs/heads/dev
Commit: 1111c8b3b9b8fe28d6c9fe9c9a1bc548a679e4ac
Parents: 5f83eda
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Sep 13 15:58:36 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Sep 16 17:26:48 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVSplashScreen.m | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/1111c8b3/src/ios/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m
index ba8d108..8159ce1 100644
--- a/src/ios/CDVSplashScreen.m
+++ b/src/ios/CDVSplashScreen.m
@@ -171,6 +171,9 @@
     if (CGSizeEqualToSize(screenSize, imgBounds.size)) {
         CGRect statusFrame = [self.viewController.view convertRect:[UIApplication sharedApplication].statusBarFrame
fromView:nil];
         imgBounds.origin.y -= statusFrame.size.height;
+        if (!(IsAtLeastiOSVersion(@"7.0"))) {
+            imgBounds.origin.y -= statusFrame.size.height;
+        }        
     } else {
         CGRect viewBounds = self.viewController.view.bounds;
         CGFloat imgAspect = imgBounds.size.width / imgBounds.size.height;


Mime
View raw message