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

Native Development

Reply
Developer
Developer
Posts: 44
Registered: ‎05-17-2012
My Device: Playbook, Dev Alpha A
My Carrier: O2
Accepted Solution

Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

[ Edited ]

I'm using the Beta 2 SDK and my Dev Alpha is updated to 10.0.6.545.

 

I want my app to support orientation changes from portrait to landscape and back. To implement it I have followed the tutorial at:

https://developer.blackberry.com/cascades/documentation/dev/orientation/index.html

 

When I flip the Dev Alpha to change the orientation from portrait to landscape it works. But when I flip it back to go to portrait again the screen contents of my app gets distorted / destroyed in some way so that more or less garbage is displayed. It is not just an issue that not all of my components are not moved or something (I understand that I have to handle this) but the screen contents is garbled. When I go again to landscape it looks ok again. But when I go to portrait the screen is again distored. Here is a screenshot:

 

bb10_orientation_issue_s.jpg

 

I found that I can reproduce this behavior also with the sample apps like weatherguesser and also with fresh projects created from the project templates like the NavigationPane or TabbedPane examples when I just enable auto-orientation in their bar-descriptor.xml files and just add a onCreationCompleted handler in their main.qml:

 

onCreationCompleted: {
    OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
}

 

Since orientation change works fine for the OS itself and the pre-installed browser too and only my apps are affected I guess I'm doing something wrong. Any hints?

 

Is the source code for the above tutorial available as a downloadable archive somewhere? I would like to check it out.

 

Or is this is a known issue in Beta 2? (I did not try to implement orientation change support before Beta 2.)

 

(I haven't found anything about this in the issue tracker.)

 

Thanks in advance

Developer
Posts: 1,645
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

I have already reported the issue

https://www.blackberry.com/jira/browse/BBTEN-183

 

ekke

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor (Retired)
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

(updated that JIRA to point to this thread, and made it public so you can vote for it)

 

Stuart

Developer
Developer
Posts: 44
Registered: ‎05-17-2012
My Device: Playbook, Dev Alpha A
My Carrier: O2

Re: Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

[ Edited ]

Thanks for the info. I have voted for the issue. Please everybody who comes across this iusse vote for it too.

 

Thanks

tw

 

Developer
Developer
Posts: 44
Registered: ‎05-17-2012
My Device: Playbook, Dev Alpha A
My Carrier: O2

Re: Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

I have updated to Beta 3 SDK and the Dev Alpha to 10.0.9.388 and this bug appears to be fixed.

Regular Contributor
Posts: 56
Registered: ‎08-21-2012
My Device: BB10
My Carrier: RIM

Re: Changing orientation distorts screen content on Dev Alpha (10.0.6.545)

Hi, 

I'm changing application orientation dynamically in beta3 device. I'm facing the issue of UI distortion. http://supportforums.blackberry.com/t5/Cascades-Development/Changing-orientation-of-application-dyna... . You can  visit my Questoin.