cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathijs (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-10378) Viewport dimensions swapped after app restore in Android
Date Mon, 18 Jan 2016 15:39:39 GMT

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

Mathijs updated CB-10378:
-------------------------
    Description: 
h1. Steps to reproduce
1. Assure {{<preference name="Orientation" value="landscape" />}} in {{config.xml}}
2. (Clean) start the app
3. Press the back button
4. Open the app switcher
5. Select the app

h1. Expected behaviour
As the app is started the measurements.js code dumps {{screen.availWidth}} and {{screen.availHeight}}.
When restoring it after pressing the back button, the app initializes again and the same values
should be displayed.

h1. Perceived behaviour
The values for {{screen.availWidth}} and {{screen.availHeight}} are swapped. This causes the
app's viewport to be renedered at the wrong scale.

  was:
h1. Steps to reproduce
1. Assure <preference name="Orientation" value="landscape" /> in config.xml
2. (Clean) start the app
3. Press the back button
4. Open the app switcher
5. Select the app

h1. Expected behaviour
As the app is started the measurements.js code dumps `screen.availWidth` and `screen.availHeight`.
When restoring it after pressing the back button, the app initializes again and the same values
should be displayed.

h1. Perceived behaviour
The values for `screen.availWidth` and `screen.availHeight` are swapped. This causes the app's
viewport to be renedered at the wrong scale.


> Viewport dimensions swapped after app restore in Android
> --------------------------------------------------------
>
>                 Key: CB-10378
>                 URL: https://issues.apache.org/jira/browse/CB-10378
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 5.4.1
>         Environment: Cordova Android 4.1.1 or 5.0.0
>            Reporter: Mathijs
>
> h1. Steps to reproduce
> 1. Assure {{<preference name="Orientation" value="landscape" />}} in {{config.xml}}
> 2. (Clean) start the app
> 3. Press the back button
> 4. Open the app switcher
> 5. Select the app
> h1. Expected behaviour
> As the app is started the measurements.js code dumps {{screen.availWidth}} and {{screen.availHeight}}.
When restoring it after pressing the back button, the app initializes again and the same values
should be displayed.
> h1. Perceived behaviour
> The values for {{screen.availWidth}} and {{screen.availHeight}} are swapped. This causes
the app's viewport to be renedered at the wrong scale.



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