[
https://issues.apache.org/jira/browse/CB-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16294647#comment-16294647
]
Sir Patrick commented on CB-13682:
----------------------------------
My statusbar related config is as follows:
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarStyle" value="lightcontent" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
I do have an explicit call to show from the code in the platform.ready handler.
Could it be that there is a possibility that this show gets in before it was
initialized, and hence the value is not yet set and the view gets added? I
would assume that the initialize of the plugin was called before I get the
ready event.
> Statusbar not overlapping web view
> ----------------------------------
>
> Key: CB-13682
> URL: https://issues.apache.org/jira/browse/CB-13682
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-statusbar
> Affects Versions: 2.4.0, cordova-ios 4.5.0
> Environment: iOS 11.2.1
> Cordova: 7.1.0
> Cordova iOS: 4.5.4
> cordova-plugin-statusbar: 2.4.0
> Reporter: Sir Patrick
> Priority: Critical
> Labels: easyfix
>
> There seems to be a bug with initializing "_statusBarBackgroundView" in the
> ios code.
> It's initialized to YES. The code that makes it appear above the web view is
> in the
> setStatusBarOverlaysWebView method.
> However, if the value did not change, it won't execute. Hence, the code
> [_statusBarBackgroundView removeFromSuperview];
> is never executed for me unless I'm toggling the flag on startup:
> StatusBar.overlaysWebView(false);
> StatusBar.overlaysWebView(true);
> That fixes the issue for me in this configuration, and the status bar
> overlays the webview again.
> It might be good enough to actually call teh the setStatusBarOverlaysWebView
> when defining the default.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]