Mathijs created CB-10378:
----------------------------
Summary: 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
# 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
# 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.
# Perceived behaviour
The values forscreen.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: [email protected]
For additional commands, e-mail: [email protected]