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

This commit is contained in:
Julio César 2016-07-05 00:12:20 +02:00
parent 8159e1b307
commit 86cfafeaf9

View File

@ -454,7 +454,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height); bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height);
} else { } else {
// iOS7, iOS9+ // 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); bounds = CGRectMake(0, 0, bounds.size.width, bounds.size.height);
} else { } else {
bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width); bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width);