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 Fri, 13 Sep 2013 22:58:42 GMT
Updated Branches:
  refs/heads/master 079bd6fc6 -> 96d5875dc


[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/96d5875d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/96d5875d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/96d5875d

Branch: refs/heads/master
Commit: 96d5875dc38515c75c969284d252ed1cfbb34310
Parents: 079bd6f
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Sep 13 15:58:36 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Sep 13 15:58:36 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/96d5875d/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