cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject ios commit: [CB-2220] Fix splashscreen origin when status bar is present
Date Tue, 26 Feb 2013 17:52:08 GMT
Updated Branches:
  refs/heads/master 5bd349235 -> 7a039c669


[CB-2220] Fix splashscreen origin when status bar is present


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/7a039c66
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/7a039c66
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/7a039c66

Branch: refs/heads/master
Commit: 7a039c669cd4e27f364807072a682f4b97658551
Parents: 5bd3492
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Feb 26 12:51:58 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 26 12:51:58 2013 -0500

----------------------------------------------------------------------
 CordovaLib/Classes/CDVSplashScreen.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/7a039c66/CordovaLib/Classes/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVSplashScreen.m b/CordovaLib/Classes/CDVSplashScreen.m
index 108743c..faf152b 100644
--- a/CordovaLib/Classes/CDVSplashScreen.m
+++ b/CordovaLib/Classes/CDVSplashScreen.m
@@ -112,8 +112,9 @@
         }
     }
 
+    CGFloat statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
+    _imageView.frame = CGRectMake(0, statusBarHeight, _imageView.image.size.width, _imageView.image.size.height);
     _imageView.image = [UIImage imageNamed:imageName];
-    _imageView.frame = CGRectMake(0, 0, _imageView.image.size.width, _imageView.image.size.height);
 }
 
 - (void)updateSplashScreenWithState:(int)state


Mime
View raw message