cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moisés Gramary (JIRA) <>
Subject [jira] [Commented] (CB-5440) Activating SystemTray in WP8 app doesn't shrink the viewport in portrait
Date Wed, 03 Sep 2014 08:17:51 GMT


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:

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

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

View raw message