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

Adobe AIR Development

Reply
Contributor
Posts: 20
Registered: ‎04-29-2010
My Device: Blackberry 8900
My Carrier: O2
Accepted Solution

Simulator screen width crunched when running app

Hello

 

When I first start up the simulator the screen looks fine and covers the full width but when I start an app the screen width reduces to about 600 pixels.

 

playbook_app.png

 

When I then close the app the whole screen area seems to have adopted this new width and the only solution is to reboot the simulator.

 

playbook.png

 

I do specify the width and height in my apps:

 

 

[SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]

 

 

Any idea why this is happening?

 

I use Flash CS5 and the command prompt to develop Playbook apps. I have all the SDK's installed and working.

 

Any help would be much appreciated!

Highlighted
Contributor
Posts: 20
Registered: ‎04-29-2010
My Device: Blackberry 8900
My Carrier: O2

Re: Simulator screen width crunched when running app

Was a simple fix in the end.

 

Had to change 1 line in the XML file:

 

 

<aspectRatio>portrait</aspectRatio>

to

<aspectRatio>landscape</aspectRatio>

 

Don't know why I didn't see that earlier...

 

Developer
Posts: 278
Registered: ‎10-27-2010
My Device: Playbook

Re: Simulator screen width crunched when running app

That's funny, good find Smiley Happy

--------------
kdittyr

Accepted PlayBook Applications:
HDB Converter -- Utilities/Calculators
Contributor
Posts: 30
Registered: ‎02-12-2011
My Device: Not Specified

Re: Simulator screen width crunched when running app

That is not so obvious, especially when you close app, the simulator stays in that state, it's confusing.(they should fix it) Thank's  for writing solution I had the same problem.