From 244eb717fda536adad073b727fd4af1dd3cd58fd Mon Sep 17 00:00:00 2001 From: daserge Date: Tue, 29 Mar 2016 16:49:29 +0300 Subject: [PATCH] CB-10884 Inappbrowser breaks UI while Screen orientation changes from landscape to portrait on iOS --- src/ios/CDVStatusBar.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index dcfb88f..23c983a 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -445,6 +445,8 @@ static const void *kStatusBarStyle = &kStatusBarStyle; if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) { self.viewController.view.frame = bounds; + } else if (self.viewController.presentedViewController != nil) { + bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width); } self.webView.frame = bounds;