From 86cfafeaf9796c45c855fc55c3605aadb713af62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar?= Date: Tue, 5 Jul 2016 00:12:20 +0200 Subject: [PATCH] CB-11287: (ios) - fix webview resize after modal on iPhones --- src/ios/CDVStatusBar.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);