Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I scale my app for different screen sizes?

Hello! Looks like the problem is that you've placed the link to app in some frame. Please try to add the following line pre<meta name="viewport" content="initial-scale=1" &#47;>/pre in < head block. If it won't help you would need to publish app on your own server another way.

Puneet Duseja
Posts: 0
Joined: Wed Apr 16, 2014 10:55 am

How do I scale my app for different screen sizes?

Hi, In order to auto scale i am using the following code on page loading, which worked well when i was testing on browser, but once i installed the apk file on my phone, auto scaling did not happen.

Code
Appery("mobilegrid_132").css("height", '100vh');
Appery("mobilegrid_132").parent().css("height", Appery("mobilecontainerName").css("height"));
Appery("mobilegrid_132").css("width","100vw");

Request help on this....

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do I scale my app for different screen sizes?

Hi Puneet,

Please try stretching page component using selector codedata-role="page"/code or the whole body.

Return to “Issues”