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
Contributor
Posts: 36
Registered: ‎05-04-2010
My Device: Storm
My Carrier: Verizon

OS6 Simulator ver 141.9800

I have 2 widgets apps working fine on the simulators for OS5, however on the recently release simulator for OS6 Torch all pages for my apps are displayed incorrectly. as one example, DIV using a class with a style of bottom: 0px does not display at all.  Can this be a simulator issue only? 

 

On my apps I am detecting the size of the display and based on that I use different CSS file to layout the page accordingly (i.e. 480x360, 360x480, 240x320, etc).    As far as I know, the storm 1 & 2 and the torch have the same display size.  How can I detect if a device is running OS6 vs OS5 to apply a different style sheet? 

Developer
Posts: 185
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10
My Carrier: Vodafone

Re: OS6 Simulator ver 141.9800

You can check:

 

http://www.blackberry.com/developers/docs/widgetapi/

 

model and softwareversion.

 

Or via Javascript: screen.height and screen.width

Josep Maria