Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Setting Screen Resolution?

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?

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: Setting Screen Resolution?

Might be @ higher Resolution you apps font and graphics images looks small ‘

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Setting Screen Resolution?

Yes everything looks a bit small... I found that to be true with others app I haven't submitted yet as well.

It would be nice if there was a way to scale everything up by a given proportion. For example @x2 for all elements within your <html>
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Setting Screen Resolution?

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,initial-scale=1.0">

 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Highlighted
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Setting Screen Resolution?

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
    }

 

 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.