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

Cascades Development

Reply
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Carrier: Developper
Accepted Solution

SupportedDisplayOrientation.All; => nothing happend in landscape

Hi all,

I use  OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;

in order to allow my page to be view in landscape, but when I turn the device nothing happend and the page stay in portrait.

 

If I write  OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayLandscape; it's ok  the page turn to landscape.

 

Anyone get this problem ?

 

Thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Developer
mzex
Posts: 320
Registered: ‎06-30-2012
My Carrier: Telenor, Mobitel

Re: SupportedDisplayOrientation.All; => nothing happend in landscape

You set that for qml file, you need to set also in bar-descriptor.xml. 

If your app need to auto orient you need to set autoorients tag to true.

Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Carrier: Developper

Re: SupportedDisplayOrientation.All; => nothing happend in landscape

Great ! thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.