You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/12/17 17:08:00 UTC

[jira] [Comment Edited] (CB-13682) Statusbar not overlapping web view

    [ https://issues.apache.org/jira/browse/CB-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16294227#comment-16294227 ] 

jcesarmobile edited comment on CB-13682 at 12/17/17 5:07 PM:
-------------------------------------------------------------

Can you share the preferences you have in the config.xml?

I don't think I fully understand your problem, or if I understand it, I'm not able to reproduce it.

The  _ready command (called when device is ready) will set the statusBarOverlaysWebView like this, that will call the setStatusBarOverlaysWebView with the value it has on the config.xml preference

{code}
self.statusBarOverlaysWebView = [(NSNumber*)[self settingForKey:setting] boolValue];
{code}


EDIT: 
I understand what you mean about the code not being called unless the value changes, but also, the background view is not added neither unless the value is false. So if the default is true there is no need to remove the view as it wasn't added in the first place.




was (Author: jcesarmobile):
Can you share the preferences you have in the config.xml?

I don't think I fully understand your problem, or if I understand it, I'm not able to reproduce it.

The  _ready command (called when device is ready) will set the statusBarOverlaysWebView like this, that will call the setStatusBarOverlaysWebView with the value it has on the config.xml preference

{code}
self.statusBarOverlaysWebView = [(NSNumber*)[self settingForKey:setting] boolValue];
{code}




> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org