Phonegap + Windows Phone 8 : HTML5 viewport meta & scaling issue



Whenever you face such issue, it would mean you have not written the CSS properly.

Just add the following in CSS −

* {
   zoom:1;
   -ms-content-zooming:none;
}

For some code, even the following works −

@viewport
{
   width:320px;
}
@-ms-viewport {
   width:320px;
   zoom-user:fixed;
   max-zoom:1;
   min-zoom:1;
}
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know


Advertisements