cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dane Anvemo (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (CB-4930) InAppBrowser should take into account the status bar
Date Thu, 02 Apr 2015 13:29:37 GMT

     [ https://issues.apache.org/jira/browse/CB-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dane Anvemo updated CB-4930:
----------------------------
    Comment: was deleted

(was: Thanks for the update.

Yeah, its true that a background view is needed behind the status bar. I guess you could have
an option like "statusbar= |hidden, dark, light, transparent]" to call when calling window.open().
I would really like to help out more with this more but ObjectiveC and iOS is not really my
cup of tea... :(

However, to hide the status bar is unfortunately not a good solution for my app, as the user
needs to know whether we has wifi or not. 

In my case, I have made a workaround where I have reverted the earlier fix in CB4930 https://github.com/daneanvemo/cordova-plugin-inappbrowser/commit/502281c7719c05d820a1062ee5466c6acc9474f4
Then I send in the device and version as query parameters to the target site. If iOS version
> 7.0 a certain css-class is added to the header of the site which then acts as the background
to the status bar. 

This works but is not optimal. It would be much better to have the alternative to let the
IAB add the background.)

> InAppBrowser should take into account the status bar
> ----------------------------------------------------
>
>                 Key: CB-4930
>                 URL: https://issues.apache.org/jira/browse/CB-4930
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.0.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: ios7
>             Fix For: 3.2.0
>
>
> Right now, the status bar overlaps the IAB at the top.
> Hide the status bar when on iOS 7, unhide (if it was hidden by the user in the first
place for the app only) when it is closed.
> Workaround for now - I suppose you could inject some css to have a body margin-top of
20px (or a different value if it is landscape - yeah it could get messy)
> Hiding/unhiding the status bar is preferable to moving the view down to be consistent
with the UIWebView taking up the whole window.



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


Mime
View raw message