Gabriele Cirulli created CB-6448:
------------------------------------

             Summary: Display problems on Xiaomi Mi3
                 Key: CB-6448
                 URL: https://issues.apache.org/jira/browse/CB-6448
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 3.4.0
         Environment: Xiaomi Mi3 running Miui v5 (4.4.4) (Android 4.3 JLS36C)
Phonegap version: 3.4.0-0.19.7
            Reporter: Gabriele Cirulli


When running the application on a Xiaomi Mi3 device running Miui v5 (4.4.4), 
the viewport of the application becomes very big and causes the application UI 
to look small on the screen.

Here is an example of what it looks like on the device: 
http://i.imgur.com/3w1i6Z0.png
 
This is the expected appearance: http://i.imgur.com/yS6615p.png

The application displays as expected on iOS 7 and on the other Android versions 
and devices that have been tested. Android 4.4.3 doesn't seem to be affected.

When using an alert to display `screen.width` and `screen.height`, the Xiaomi 
Mi3 device reports a viewport size of 1080x1920, which is disproportionate. 
Other android devices (such as a Galaxy S3 running Android 4.4) report saner 
dimensions, such as 360x640.

This is a very strange issue and I haven't been able to determine whether it's 
a problem with how the Xiaomi Mi3 device works or the Miui v5 OS works, or if 
it is due to how Phonegap detects dimensions.

The appropriate viewport meta tags are in place in my application and they seem 
to behave correctly on other devices and systems.

Even more strangely, Untappd, which is another Phonegap-based app, doesn't seem 
to show this issue when executed on the Xiaomi Mi3 device, which hints at the 
possibility of this being a Phonegap problem (possibly introduced in the latest 
versions).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to