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-11287: (ios) - fix webview resize after modal on iPhones
Date Mon, 04 Jul 2016 22:20:16 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master 8159e1b30 -> 86cfafeaf


CB-11287: (ios) - fix webview resize after modal on iPhones


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/86cfafea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/86cfafea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/86cfafea

Branch: refs/heads/master
Commit: 86cfafeaf9796c45c855fc55c3605aadb713af62
Parents: 8159e1b
Author: Julio César <jcesarmobile@gmail.com>
Authored: Tue Jul 5 00:12:20 2016 +0200
Committer: Julio César <jcesarmobile@gmail.com>
Committed: Tue Jul 5 00:12:20 2016 +0200

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/86cfafea/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index 58e819a..ba4c04e 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -454,7 +454,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
                 bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height);
             } else {
                 // iOS7, iOS9+
-                if ([self.viewController.presentedViewController.presentationController isKindOfClass:[UIPopoverPresentationController
class]]) {
+                if ([self.viewController.presentedViewController.presentationController isKindOfClass:[UIPopoverPresentationController
class]] || UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad) {
                     bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height);
                 } else {
                     bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width);


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


Mime
View raw message