cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6448) Display problems on Xiaomi Mi3
Date Thu, 22 May 2014 13:49:01 GMT

    [ https://issues.apache.org/jira/browse/CB-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005919#comment-14005919
] 

Joe Bowser commented on CB-6448:
--------------------------------

This is a known issue with the meta tag.  Remove target-density from the meta tag, and the
screen should go back to the proper size.  It's a good idea to not use this part of the viewport
meta tag, since it's not supported in all versions of Android.

> 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
>            Assignee: Joe Bowser
>
> 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)

Mime
View raw message