You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2016/07/04 22:20:16 UTC
cordova-plugin-statusbar git commit: CB-11287: (ios) - fix webview
resize after modal on iPhones
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 <jc...@gmail.com>
Authored: Tue Jul 5 00:12:20 2016 +0200
Committer: Julio C�sar <jc...@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