You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/02/26 18:52:08 UTC
ios commit: [CB-2220] Fix splashscreen origin when status bar is
present
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 <ag...@chromium.org>
Authored: Tue Feb 26 12:51:58 2013 -0500
Committer: Andrew Grieve <ag...@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