CB-11485 fix resize on rotation with popover
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 @@
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;