CB-13712 (iOS): fix overlaysWebView reset on rotation (#92)

This commit is contained in:
jcesarmobile 2017-12-27 16:43:58 +01:00 committed by Simon MacDonald
parent 6352d80a96
commit 8da38f5075

View File

@ -97,8 +97,12 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
-(void)statusBarDidChangeFrame:(NSNotification*)notification
{
[self resizeStatusBarBackgroundView];
[self resizeWebView];
//add a small delay ( 0.1 seconds ) or statusbar size will be wrong
__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