Repository: cordova-plugin-statusbar Updated Branches: refs/heads/master f8873fd48 -> 8159e1b30
CB-11485 fix resize on rotation with popover 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/8159e1b3 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/8159e1b3 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/8159e1b3 Branch: refs/heads/master Commit: 8159e1b307f69629efd75940458e73ebab90f5f8 Parents: f8873fd Author: Julio César <[email protected]> Authored: Mon Jul 4 21:20:33 2016 +0200 Committer: Julio César <[email protected]> Committed: Mon Jul 4 21:20:33 2016 +0200 ---------------------------------------------------------------------- src/ios/CDVStatusBar.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/8159e1b3/src/ios/CDVStatusBar.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index a26a15f..58e819a 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -454,7 +454,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle; bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height); } else { // iOS7, iOS9+ - bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width); + if ([self.viewController.presentedViewController.presentationController isKindOfClass:[UIPopoverPresentationController class]]) { + bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height); + } else { + bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width); + } } } self.webView.frame = bounds; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
