mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-19 01:12:49 +08:00
CB-13712 (iOS): fix overlaysWebView reset on rotation (#92)
This commit is contained in:
parent
6352d80a96
commit
8da38f5075
@ -97,8 +97,12 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
|
|
||||||
-(void)statusBarDidChangeFrame:(NSNotification*)notification
|
-(void)statusBarDidChangeFrame:(NSNotification*)notification
|
||||||
{
|
{
|
||||||
[self resizeStatusBarBackgroundView];
|
//add a small delay ( 0.1 seconds ) or statusbar size will be wrong
|
||||||
[self resizeWebView];
|
__weak CDVStatusBar* weakSelf = self;
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
||||||
|
[weakSelf resizeStatusBarBackgroundView];
|
||||||
|
[weakSelf resizeWebView];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)pluginInitialize
|
- (void)pluginInitialize
|
||||||
|
Loading…
Reference in New Issue
Block a user