07-25-2012 12:38 PM
I submited an app for BB10 devalpha and got back the following...
"Tested on Dev Alpha, the app can launch, but resolution of the screen has not been set properly"
How can I change the resolution?
07-25-2012 02:00 PM
Might be @ higher Resolution you apps font and graphics images looks small ‘
07-25-2012 02:05 PM
07-25-2012 02:57 PM
it is possible to auto scale or scale by actual pixels. It depends meta line at the top of your code.
here is what i do to scale by pixels
<meta name="viewport" content="height=device-height,width=device-width,target-densitydpi=device-dpi,user-scalable=no,initi al-scale=1.0">
08-25-2012 04:22 AM
I think this conditions will help you,
if(screen.height == 1280) {
$('.container').css({
'min-height' : (screen.height - 139) + "px",
});
} else {
$('.container').css({
'min-height' : screen.height - 139
});
}the above code is for Jquery.
If you want to use it in JavaScript then simply use these type of condition:
if(screen.height == 1280)
{
// Place your code here
}
else
{
// Place your code here
}