Android Disable zoom button inside web browser
I am using the cordova InAppBrowser plugin to render a webview from my site. It works correctly, but when I start scrolling my webpage, two zoom buttons appear. How to hide it? I use it to open a webview:
var ref = window.open("http://m.estadao.com.br", "_self", "location=no", "closebuttoncaption=Return", "EnableViewPortScale=no");
Tks!
+3
source to share
2 answers
You can pass an attribute zoom
with a value no
as a parameter when using InAppBrowser.
var ref = window.open("http://m.estadao.com.br", "_self", "location=no","zoom=no", "closebuttoncaption=Return", "EnableViewPortScale=no");
Source - Cordova InAppBrowser github documentation .
+4
source to share
The scaling attribute will work if used like this:
var ref = window.open (" http://m.estadao.com.br ", "_self", "location = no, zoom = no");
Alternatively, you can edit zoomControls in InAppBrowser.java in plugins / cordova-plugin-inappbrowser / src / android
+2
source to share