You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sébastien Blanc (JIRA)" <ji...@apache.org> on 2014/09/22 14:45:34 UTC

[jira] [Updated] (CB-7608) Add option to set "useWideViewPort" to false.

     [ https://issues.apache.org/jira/browse/CB-7608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sébastien Blanc updated CB-7608:
--------------------------------
    Description: 
PR : https://github.com/apache/cordova-plugin-inappbrowser/pull/66

When using inAppBrowser with Android, the viewport tag of the loaded page is ignored. As a result, some pages using a specific viewport (for instance an Ionic view) are completly zoomed out.

With iOS it's possible to fix that by passing "enableViewportScale" but for Android the only way to fix this is to set  'useWideViewPort' to 'false' . It's now harcoded to 'true' https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L620.

We should be able to pass the value through the option (i.e : 'location=no, useWideViewPort=no') 

  was:
When using inAppBrowser with Android, the viewport tag of the loaded page is ignored. As a result, some pages using a specific viewport (for instance an Ionic view) are completly zoomed out.

With iOS it's possible to fix that by passing "enableViewportScale" but for Android the only way to fix this is to set  'useWideViewPort' to 'false' . It's now harcoded to 'true' https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L620.

We should be able to pass the value through the option (i.e : 'location=no, useWideViewPort=no') 


> Add option to set "useWideViewPort" to false.
> ---------------------------------------------
>
>                 Key: CB-7608
>                 URL: https://issues.apache.org/jira/browse/CB-7608
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, Plugin InAppBrowser
>    Affects Versions: 3.5.0
>            Reporter: Sébastien Blanc
>
> PR : https://github.com/apache/cordova-plugin-inappbrowser/pull/66
> When using inAppBrowser with Android, the viewport tag of the loaded page is ignored. As a result, some pages using a specific viewport (for instance an Ionic view) are completly zoomed out.
> With iOS it's possible to fix that by passing "enableViewportScale" but for Android the only way to fix this is to set  'useWideViewPort' to 'false' . It's now harcoded to 'true' https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/android/InAppBrowser.java#L620.
> We should be able to pass the value through the option (i.e : 'location=no, useWideViewPort=no') 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)