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

Java Development

Reply
Developer
Bottomfish
Posts: 98
Registered: ‎01-06-2009

Simulator Display.getHeight() bug

Hi all, just wanted to confirm if you guys stumble upon Display.getHeight() not return the same height

in portrait versus landscape mode in the simulator. I don't have the device to test this if this is simulator

specific. I get width = 360 height = 480 when in portrait; while width=480 height = 156 when in landscape mode.

-- Bottomfish

Please use plain text.
Developer
ksykulev
Posts: 58
Registered: ‎07-09-2009

Re: Simulator Display.getHeight() bug

Here is the UI guideline I use..

http://docs.blackberry.com/en/developers/deliverables/6625/Dimensions_for_screens_images_and_icons_4...

 

It states that the landscape view with keyboard is 156px. So that's where that number came from.. is the virtualkeyboard being shown? Or is it giving you that height without the keyboard being shown?

 

 

Please use plain text.
Developer
Bottomfish
Posts: 98
Registered: ‎01-06-2009

Re: Simulator Display.getHeight() bug

The virtual keyboard is not shown during the time an object being created call Display.getHeight().

The sim starts up in landscape mode though.

Please use plain text.