I have ported a simplified version of a website that uses bootstrap to mobile using bootstrap3 and phonegap.
In my desktop and tablet the pages are showing with a proper size, however, when I open the pages in phonegap's webview, they render in such a small size that I can't even read the text (I am using HTC One for my tests).
It seems playing with the viewport settings should allow me to scale the content appropriately according to the resolution of the device:
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, height=device-height, target-densitydpi=device-dpi" />
However, I tried several combinations of settings for viewport with no success:
- I tried with
initial-scale=2.0, maximum-scale=2.0, minimum-scale=2.0
but nothing changed. - I also tried with
target-densitydpi=medium-dpi
which made the content bigger indeed, but it was in some sort of "zoom" mode so I was only able to see a section of the content. - I tried removing
target-densitydpi=device-dpi
and I got the same result as in 2.
Any clues what combination would allow me to scale all HTML elements to a reasonable size (text, buttons, navbars, inputs, wells, etc...)
Thanks!