Dynamic Viewport Resizing - Phonegap Ignores Viewport
I'm using the following code to 'resize my app to the screen size of the device showing it: $(function() { if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAge
Solution 1:
PhoneGap uses Android WebView before KitKat (4.4), and Android WebView does not support viewport with specific width. A solution to it is to use a library that enables custom viewport support.
One choice is monaca.viewport.js which is distributed in GitHub: https://github.com/monaca/monaca.js, and here is the API reference.
This library is also a part of Monaca, a free cloud-based tool for PhoneGap development.
Post a Comment for "Dynamic Viewport Resizing - Phonegap Ignores Viewport"