cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5683) IAB: ViewPort scales out on Android
Date Sat, 21 Dec 2013 14:08:09 GMT

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

Andrew Grieve commented on CB-5683:
-----------------------------------

Do you have a link to the page you're trying?
I'd try taking out the target-densitydpi=device-dpi part (I don't think that's even supported
on iOS, and support is dropped on KitKat)


> IAB: ViewPort scales out on Android
> -----------------------------------
>
>                 Key: CB-5683
>                 URL: https://issues.apache.org/jira/browse/CB-5683
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin InAppBrowser
>    Affects Versions: 3.2.0
>            Reporter: Konstantin Rudy
>            Assignee: Andrew Grieve
>
> Steps to reproduce:
> 1. Open a webpage in the InAppBrowser using:
> {noformat}
>   window.open(encodeURI('http://k-rudy.github.io/phonegap-twitter-timeline?410453165654278145'),
'_blank', 'location=no');
> {noformat}
> *Result:* On iOS version it works perfectly well.
> However on Android - it scales and is displayed only in 1/4 of the View:
> !https://f.cloud.github.com/assets/1032148/1716596/5fb217e0-61c3-11e3-9fbe-9cfd0dbd236c.png!
> When I update the file 
> https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L562
> and change from {noformat}inAppWebView.getSettings().setUseWideViewPort(true){noformat}
to {noformat}inAppWebView.getSettings().setUseWideViewPort(false){noformat}
> It displays just fine:
> !https://f.cloud.github.com/assets/1032148/1716631/c2acc8b8-61c3-11e3-9447-921294008e67.png!
> Thanks,
> Konstantin.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message