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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
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?

_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
kamal_nigam
Posts: 416
Registered: ‎07-23-2012
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.
-------------------------------------------------------------------------------------.
Please use plain text.
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
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>
_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
ignites
Posts: 465
Registered: ‎04-11-2012
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!
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011

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.
Please use plain text.