cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Charhon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-2100) Window size issue when the orientation is changed
Date Thu, 27 Dec 2012 11:50:12 GMT
Guillaume Charhon created CB-2100:
-------------------------------------

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

Mime
View raw message