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

[jira] [Comment Edited] (CB-12891) Double Height Status Bar Leaves A White Bar At The Bottom

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

Nicola edited comment on CB-12891 at 7/11/17 1:22 PM:
------------------------------------------------------

EDIT:
To prevent bad behaviours on previous iOS version I've improved the temporary solution as follow:

{code:none}
NSString* osVersion; (line 104)
[...]
(line 357)
if(osVersion == nil) {
    osVersion = [[UIDevice currentDevice] systemVersion];
}
    
if([osVersion hasPrefix:@"11"]) {
    webView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
}
{code}



was (Author: nicolalc):
EDIT:
To prevent bad behaviours on previous iOS version I've improved the temporary solution as follow:

{code:objectivec}
NSString* osVersion; (line 104)
[...]
(line 357)
if(osVersion == nil) {
    osVersion = [[UIDevice currentDevice] systemVersion];
}
    
if([osVersion hasPrefix:@"11"]) {
    webView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
}
{code}


> Double Height Status Bar Leaves A White Bar At The Bottom
> ---------------------------------------------------------
>
>                 Key: CB-12891
>                 URL: https://issues.apache.org/jira/browse/CB-12891
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>         Environment: iOS 11, using Ionic v3.3.0 on an iPhone 7 Plus
>            Reporter: Ahmad Tawakol
>              Labels: iOS11
>
> Not sure if this is related to the statusbar plugin or not but, on iOS 11, when you have a double height status bar the view resizes itself and pushes the content down correctly. But when it goes away and returns to a normal status bar, the view doesn't resize itself again to fill the screen, leaving a white bar at the bottom of the screen.



--
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