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

Moisés Gramary commented on CB-5440:
------------------------------------

I think the error is not on the Cordova WebView shrinking, that's more on the 
IE processing of the *viewport tag* / *@-ms-viewport* css tag.

In my testings, the js code:

{quote}
var vpStyle = document.createElement("style");
vpStyle.appendChild(document.createTextNode("@-ms-viewport 
\{width:device-width;height:" + window.innerHeight + "px }"));
document.getElementsByTagName("head")\[0].appendChild(vpStyle);
{quote}

...on device load, solves the VISIBLE height, but it "appends" white height and 
white width on bottom and right respectively. It doesn't appears the best 
solution, but, with this fix and forcing the main element to be not scrollable, 
would give the right behaviour.

> Activating SystemTray in WP8 app doesn't shrink the viewport in portrait
> ------------------------------------------------------------------------
>
>                 Key: CB-5440
>                 URL: https://issues.apache.org/jira/browse/CB-5440
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.1.0
>         Environment: Windows Phone 8 (didn't test on 7), not specific to 
> device
>            Reporter: Kamen Bundev
>            Assignee: Jesse MacFadyen
>         Attachments: SystemTrayViewport.zip
>
>
> Adding shell:SystemTray.IsVisible="True" to MainPage.xaml doesn't shrink the 
> Cordova WebView in portrait mode, but instead pushes it down with about 25px 
> - as much as the SystemTray height. Landscape orientation is okay (the 
> WebView is shorter than it should, but this looks like a different issue).



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

Reply via email to