cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcesarmob...@apache.org
Subject cordova-plugin-statusbar git commit: CB-11191: Statusbar plugin causing issues with webview size
Date Fri, 28 Oct 2016 22:10:47 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master 940a8ee92 -> 2c036c9c9


CB-11191: Statusbar plugin causing issues with webview size

 This closes #65


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

Branch: refs/heads/master
Commit: 2c036c9c91130293ae09b0206e42c881406138c6
Parents: 940a8ee
Author: Julio César <jcesarmobile@gmail.com>
Authored: Wed Sep 21 23:58:25 2016 +0200
Committer: Julio César <jcesarmobile@gmail.com>
Committed: Sat Oct 29 00:10:20 2016 +0200

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/2c036c9c/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index 3e86de6..55f7ed6 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -90,6 +90,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
     }
 }
 
+-(void)cordovaViewWillAppear:(NSNotification*)notification
+{
+    [self resizeWebView];
+}
+
 -(void)statusBarDidChangeFrame:(NSNotification*)notification
 {
     //add a small delay for iOS 7 ( 0.1 seconds )
@@ -112,6 +117,8 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
 
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(statusBarDidChangeFrame:)
name: UIApplicationDidChangeStatusBarFrameNotification object:nil];
 
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cordovaViewWillAppear:)
name: @"CDVViewWillAppearNotification" object:nil];
+
     _statusBarOverlaysWebView = YES; // default
 
     [self initializeStatusBarBackgroundView];


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


Mime
View raw message