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 2015/04/03 21:34:20 UTC

cordova-plugin-inappbrowser git commit: CB-4930 - (prefix) InAppBrowser should take into account the status bar

Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master 461d9e9c4 -> dfd099958


CB-4930 - (prefix) InAppBrowser should take into account the status bar


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

Branch: refs/heads/master
Commit: dfd099958152ea0f3c9e2f4af9a3a7ee5ff6e0bc
Parents: 461d9e9
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Apr 3 12:34:06 2015 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Apr 3 12:34:11 2015 -0700

----------------------------------------------------------------------
 src/ios/CDVInAppBrowser.m | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/dfd09995/src/ios/CDVInAppBrowser.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index 6d141d3..24f56c4 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -975,6 +975,20 @@
 
 @implementation CDVInAppBrowserNavigationController : UINavigationController
 
+- (void) viewDidLoad {
+
+    CGRect frame = [UIApplication sharedApplication].statusBarFrame;
+
+    // simplified from: http://stackoverflow.com/a/25669695/219684
+
+    UIToolbar* bgToolbar = [[UIToolbar alloc] initWithFrame:frame];
+    bgToolbar.barStyle = UIBarStyleDefault;
+    [self.view addSubview:bgToolbar];
+
+    [super viewDidLoad];
+}
+
+
 #pragma mark CDVScreenOrientationDelegate
 
 - (BOOL)shouldAutorotate


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org