3

phonegap InappBrowser does not work with viewport

 3 years ago
source link: https://www.codesd.com/item/phonegap-inappbrowser-does-not-work-with-viewport.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

phonegap InappBrowser does not work with viewport

advertisements

I'm using PhoneGap 2.3 and now when I open a new URL with 'window.open', my URL opens in the inAppBrowser.

In this browser, my viewport metatag is not working but when I put my URL in a safari browser the viewport is working fine.

In PhoneGap, I have set to 'yes' for 'enableViewportScale' but it doesn't work.

Somebody have a solution?

Thanks


enableViewportScale was added in 2.4.0 so you should just need to upgrade.

http://docs.phonegap.com/en/2.4.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser

(under window.open)

EDIT:

Also, the way to call the options is one singular string, not an object:

So it should look like this:

'location=no,enableViewportScale=yes'

Tags cordova

Related Articles

JQuery .click () does not work with template

Here is my ajax function that has var template variable. $.ajax({ type: "GET", url: "/Home/GetComment", dataType: "JSON", success: function (comments) { for (var i = 0; i < comments.length; i++) { var template = '<a id=

Rail_ 'button_to' does not work with the 'send_file'

In the view, suppose I have a button. If I click on it, it should trigger the file download. In my view I have: <%= link_to 'Download File', download_file_home_path %> In routes.rb resources :homes, only: [:update] do member do get 'download_file' e

The jQuery .on () function does not work with & ldquo; Click & rdquo; Event

I am working with MS Dynamics CRM 2013 and I am facing with the issue that when I want to add event handler to the button "Documents" in the navigation pane, jQuery function .on() doesn't work with "click" event. It works fine with &qu

Orwell Dev C ++ does not work with C ++ 11

I'm trying to use any of the C++11 features in Orwell Dev C++ but with no luck. I installed the version with minGW and whatever I set in the compiler options, I just get the "[Error] 'to_string' was not declared in this scope" in this code: #inc

@TableGenerator does not work with EclipseLink JPA 2.0

I am having a weird issue. i am using Table Generation strategy in my JPA application. until recently, I used Toplink persistence provider as the JPA implementation. All worked fine. Just now I added some inheritance features that are not supported b

OnKeyListener does not work with software keyboard (Android)

I am using onKeyListener to get the onKey events. It works fine with the normal keyboard. But it does not work with soft keyboard. I am only able to get onKey events for numerics and not alphabets. Is there any workaround to solve this? Any kind of h

Why. SECONDARY does not work with patterns (%) while .PRECIOUS does?

My question is to understand better what i missed in make process and .SECONDARY purpose vs .PRECIOUS, not to get my script working, since it does work already. I am using make to either open a emacs editor on a file ( java but irrelevant for purpose

Anchor background image does not work with Safari / Firefox

I have following Css where i have used back-ground image. Then i am generating Anchor and assigning css class which has image. It works fine with IE but does not work with Safari,Firefox and Chrome. Can anyone help me on how to fix it. I have given d

If the statement does not work with two & lt; Long & gt; Lists [Java]

long temp; for ( int i = 0; i < size; i++ ) { temp = ls.get(i); System.out.println("temp is:" + temp); for ( int j = 0; j < size; j++) { if ( i == j ) { } else if ( ls.get(i) == ls.get(j) ) { // If Duplicate, do stuff... Dunno what yet. Sy

Realm.objects (). Filter does not work with Resuts & lt; T & gt;

I tried to do query objects from Realm using RealmSwift framefowk with predicates: realm.objects(Train).filter("ANY route IN %@", realm.objects(Route)) Error is: Cannot invoke 'filter' with an argument list of type '(String, Results)' The same c

The Android data link library does not work with the latest Gradle versions

The Android data-binding library does not work with the latest Gradle betas (1.4.0-beta2 to beta6). I have previously successfully used Gradle 1.4.0-beta1, however starting today, Gradle throws the following error message: Error:(1, 0) Plugin is too

Disqus does not work with ajax

I have tried to use Diqus comment system in my site using ajax to load the article and comments and i couldn't make it work. I use jQuery and i load the whole article (comments included) with the action ".load". I am using the code they provide

The replacement function does not work with parentheses ()

I stuck for a while on a replace function. basically it works, but it does not work with brackets (). I have prepared a fiddle for that: jsfiddle.net/99xPY/3/ Markup: <span>Textarea / Longtest</span><br> <input id="textarea_1&quo

The GAE or GAE plugin appcfg.cmd does not work with --enable_jar_splitting parameter

I have this error message: Preparing to deploy: Created staging directory at: 'C:\Users\leet\AppData\Local\Temp\appcfg4768292050846213939.tmp' Scanning for jsp files. Compiling jsp files. Scanning files on local disk. java.io.IOException: Jar C:\User

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK