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 2016/03/07 10:29:40 UTC

[jira] [Commented] (CB-10799) Toolbar is shown in incorrect position if inappbrowser is shown when in-call status bar is active

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

jcesarmobile commented on CB-10799:
-----------------------------------

I've reproduced the issue.

The problem isn't that the webview is wrong positioned, the problem is that the inAppBrowser creates a "fake" statusbar using a toolbar so the statusbar seems opaque. That toolbar is created with the size of the statusbar, and when the in-call statusbar is present it's 40 points instead of 20 points, so we see 20 points of that toolbar.
Setting it to 20 points in a few places fix the issue, but there is a comment on the code
{quote}
The height of it could be hardcoded as 20 pixels, but that would assume that the upcoming releases of iOS won't change that value.
{quote}

Will ask on the developer mail list if we should harcode the value to fix this or if someone can think in another solution that doesn't require to hardcode it.

> Toolbar is shown in incorrect position if inappbrowser is shown when in-call status bar is active
> -------------------------------------------------------------------------------------------------
>
>                 Key: CB-10799
>                 URL: https://issues.apache.org/jira/browse/CB-10799
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 1.3.0
>         Environment: iOS
>            Reporter: Martin Baker
>              Labels: ios
>
> If the in-call status bar is active when an inappbrowser is shown, and toolbar is set to top, then the toolbar is positioned 20pt lower than it should be and partially covers up the webview.
> This does not happen if the inappbrowser is shown and *then* the in-call status bar is shown.
> A similar but related problem happens if the toolbar is positioned at the bottom - there is a 20pt gap between the in-call status bar and the top of the webview. This suggests the issue is happening because the parent view is wrongly positioned 20pt lower than it should be in this situation.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org