mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-19 09:22:50 +08:00
CB-10884 Inappbrowser breaks UI while Screen orientation changes from landscape to portrait on iOS
This commit is contained in:
parent
15043c1db2
commit
244eb717fd
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user