You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/03/13 20:58:39 UTC
[10/35] git commit: Fixed statusbar background view not auto-resizing
on landscape.
Fixed statusbar background view not auto-resizing on landscape.
Project: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/commit/b61eaae3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/tree/b61eaae3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-statusbar/diff/b61eaae3
Branch: refs/heads/master
Commit: b61eaae31024e0af53009dcd7143d3c1580ab68c
Parents: e9414a4
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Oct 7 16:51:36 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Oct 7 16:51:36 2013 -0700
----------------------------------------------------------------------
src/ios/CDVStatusBar.m | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-statusbar/blob/b61eaae3/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index 51efc3d..e49bcd8 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -48,6 +48,8 @@
_statusBarBackgroundView = [[UIView alloc] initWithFrame:frame];
_statusBarBackgroundView.backgroundColor = [UIColor blackColor];
+ _statusBarBackgroundView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin);
+
[self styleLightContent:nil]; // match default backgroundColor of #000000
NSString* setting;
@@ -72,11 +74,7 @@
if (statusBarOverlaysWebView) {
- CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame;
CGRect bounds = self.viewController.view.bounds;
- bounds.origin.y = 0;
- bounds.size.height += statusBarFrame.size.height;
-
self.webView.frame = bounds;
[_statusBarBackgroundView removeFromSuperview];