cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12891) Double Height Status Bar Leaves A White Bar At The Bottom
Date Tue, 11 Jul 2017 13:23:00 GMT

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

Nicola commented on CB-12891:
-----------------------------

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


Mime
View raw message