mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-31 10:35:41 +08:00
parent
f2c49454da
commit
554e65e60f
@ -470,6 +470,15 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
frame.origin.y = statusBarFrame.size.height;
|
frame.origin.y = statusBarFrame.size.height;
|
||||||
frame.size.height -= statusBarFrame.size.height;
|
frame.size.height -= statusBarFrame.size.height;
|
||||||
self.webView.frame = frame;
|
self.webView.frame = frame;
|
||||||
|
} else {
|
||||||
|
// even if overlay is used, we want to handle in-call/recording/hotspot larger status bar
|
||||||
|
CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame;
|
||||||
|
statusBarFrame = [self invertFrameIfNeeded:statusBarFrame];
|
||||||
|
CGRect frame = self.webView.frame;
|
||||||
|
CGFloat height = statusBarFrame.size.height;
|
||||||
|
frame.origin.y = height >= 20 ? height - 20 : 0;
|
||||||
|
frame.size.height -= frame.origin.y;
|
||||||
|
self.webView.frame = frame;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CGRect bounds = [[UIScreen mainScreen] applicationFrame];
|
CGRect bounds = [[UIScreen mainScreen] applicationFrame];
|
||||||
|
Loading…
Reference in New Issue
Block a user