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: 37
Registered: ‎12-24-2010
My Device: Tour
My Carrier: Verizon
Accepted Solution

9900 and 9930 simulators

I am having some trouble with the screen size of the new 9900 and 9930 simulators. If I set the body size using:

 

document.body.style.height = screen.height + "px";
document.body.style.width = screen.width + "px";

 The body size ends up larger than the simulators screen. screen.height and screen.width do return the correct sizes however. If I take this portion of the code out and set the width to just 100% then the screen size is okay. Has anyone else run into this issue on the 9900 and 9930 simulators? The OS 5 and OS 6 simulators work fine.

 

Thank you.

 

 

 

New Contributor
Posts: 7
Registered: ‎05-19-2011
My Device: 9900,Playbook
My Carrier: Rogers

Re: 9900 and 9930 simulators

Hi:

 

I got similar issue. You can use following viewport:

 

<meta name="viewport" content="width=device-width,target-densitydpi=device-dpi,user-scalable=no,initial-scale=1.0">

 

Note "target-densitydpi=device-dpi".

 

please have a  look at

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/9900-9930-display-issues/m-p/128...

Developer
Posts: 37
Registered: ‎12-24-2010
My Device: Tour
My Carrier: Verizon

Re: 9900 and 9930 simulators

Thank you, I will try this tonight!