You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Guillaume Charhon (JIRA)" <ji...@apache.org> on 2012/12/27 12:50:12 UTC
[jira] [Updated] (CB-2100) Window size issue when the orientation
is changed
[ https://issues.apache.org/jira/browse/CB-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Charhon updated CB-2100:
----------------------------------
Attachment: Test.zip
> Window size issue when the orientation is changed
> -------------------------------------------------
>
> Key: CB-2100
> URL: https://issues.apache.org/jira/browse/CB-2100
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP8
> Affects Versions: 2.2.0, 2.3.0
> Environment: Windows 8 - Visual Studio 2012 - Windows Phone 8 SDK
> Reporter: Guillaume Charhon
> Assignee: Jesse MacFadyen
> Priority: Minor
> Attachments: Test.zip
>
>
> The change of the orientation of the phone in the MainPage.xaml
> (by setting the SupportedOrientations="Landscape" Orientation="Landscape" attributes) do not have any impact of the html window size.
> This code snippet displays portrait values instead of landscape values :
> var height = screen.height;
> var width = screen.width;
> alert("height : " + height);
> alert("width : " + width);
> This behavior does not occurs on iOS, Android, etc.
> I have not tried on Windows Phone 7.
> I have attached a sample project to this bug report.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira