Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Mobile size is too small

I'm making an app on PhoneGap using Jquery Mobile. The app runs fine on the PC browser and on the simulator, but when I install it on my phone everything is very small.

On my home page I have a listView that is searchable, and when I tap the textfield to search something the page adjusts to a more readable size.

How can I solve this? I want it to be readable from the start.

like image 350
Adrian Matteo Avatar asked Jan 11 '12 21:01

Adrian Matteo


1 Answers

Add this in the <head> of your html:

<meta name="viewport" content="initial-scale=1, maximum-scale=1">

It will scale the page to fit your device size.

like image 137
bobek Avatar answered Oct 17 '22 19:10

bobek