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

Jacob Weber edited comment on CB-11018 at 4/9/16 9:24 PM:
----------------------------------------------------------

[~daserge] [~jcesarmobile]: Sorry, ignore my comment above about 
StatusBarOverlaysWebView. (Turns out I used the wrong plugin spec, and Cordova 
didn't fetch the statusbar plugin at all). I re-tested your fix using the same 
devices, and it seems to fix the initial problem.

This is my config.xml:
{code}
    <engine name="ios" spec="4.1.0" />
    <plugin name="cordova-plugin-whitelist" spec="1.2.1" />
    <plugin name="cordova-plugin-inappbrowser" spec="1.2.0" />
    <plugin name="cordova-plugin-statusbar" 
spec="https://github.com/MSOpenTech/cordova-plugin-statusbar#16ff9b4"; />
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#000000" />
    <preference name="Orientation" value="all" />
{code}


was (Author: jweber):
[~daserge] [~jcesarmobile]: Sorry, ignore my comment above about 
StatusBarOverlaysWebView. (Turns out I used the wrong plugin spec, and Cordova 
didn't fetch the statusbar plugin at all). I re-tested your fix using the same 
devices, and it seems to fix the initial problem.

But when I ran it on an iPhone 6 device or simulator with iOS 9.3, and switched 
from portrait to landscape with a browser open, the translucent area behind the 
status bar had the wrong width (see attachment). This looks similar to an issue 
I reported in CB-10305. Maybe your branch is out of date?

This is my config.xml:
{code}
    <engine name="ios" spec="4.1.0" />
    <plugin name="cordova-plugin-whitelist" spec="1.2.1" />
    <plugin name="cordova-plugin-inappbrowser" spec="1.2.0" />
    <plugin name="cordova-plugin-statusbar" 
spec="https://github.com/MSOpenTech/cordova-plugin-statusbar#16ff9b4"; />
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#000000" />
    <preference name="Orientation" value="all" />
{code}

> Fix statusbar with inappbrowser causing incorrect orientation on iOS8
> ---------------------------------------------------------------------
>
>                 Key: CB-11018
>                 URL: https://issues.apache.org/jira/browse/CB-11018
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>         Environment: iOS8
>            Reporter: Sergey Shakhnazarov
>            Assignee: Sergey Shakhnazarov
>              Labels: ios, triaged
>         Attachments: ios.png, screen.png
>
>
> {noformat}
>     <platform name="ios">
>         <preference name="Orientation" value="all" />
>     </platform>
>     <engine name="ios" spec="~4.1.0" />
>     <plugin name="cordova-plugin-whitelist" spec="1" />
>     <plugin name="cordova-plugin-inappbrowser" spec="~1.2.0" />
>     <plugin name="cordova-plugin-statusbar" 
> spec="https://github.com/apache/cordova-plugin-statusbar#244eb71"; />
> {noformat}
> Ran it on an iPad Air simulator with iOS 8.4. 
> Started in portrait, opened an InAppBrowser, rotated to landscape, closed the 
> InAppBrowser. 
> The window wasn't sized correctly. See attached image.
> It seems to only be a problem in iOS 8, not iOS 9. And it only affects 
> portrait-to-landscape, not landscape-to-portrait.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to