mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2026-04-27 00:00:06 +08:00
CB-11485 fix resize on rotation with popover
This commit is contained in:
@@ -454,7 +454,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user