CB-10884 Inappbrowser breaks UI while Screen orientation changes from landscape to portrait on iOS

This commit is contained in:
daserge 2016-03-29 16:49:29 +03:00
parent 15043c1db2
commit 244eb717fd

View File

@ -445,6 +445,8 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) { if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) {
self.viewController.view.frame = bounds; 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; self.webView.frame = bounds;