cordova-issues mailing list archives

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

             Summary: Viewport dimensions swapped after app restore in Android
                 Key: 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message