Dialogs are rotated incorrectly if root item is not a MainView

Bug #1439102 reported by Alberto Mardegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Invalid
High
Cris Dywan

Bug Description

Please test the attached program. When in portrait mode, the dialog will appear with the correct orientation, but when the device is rotated to landscape, the dialog rotates 180 degrees from its original position.

Revision history for this message
Alberto Mardegan (mardy) wrote :
Revision history for this message
Zsombor Egri (zsombi) wrote :

Christian, this seems to be related to the same OrientationHelper bug I guess. Please mark it as duplicate if it does.

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Christian Dywan (kalikiana)
status: New → Triaged
Revision history for this message
Cris Dywan (kalikiana) wrote :

What bug are you referring to?

This issue by my guess is due to pop overs looking for an 'automaticOrientation' property in the root item to determine that they should rotate. If that isn't a MainView or an OrientationHelper there's no way it can succeed.

It may be possible to work around the issue by defining an automaticOrientation property in the Window, or by passing it as a property to PopupUtils.open.

Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Triaged → In Progress
importance: Undecided → Low
importance: Low → High
Cris Dywan (kalikiana)
tags: added: orientation rotation
Revision history for this message
Cris Dywan (kalikiana) wrote :

With shell rotation I believe this won't be an issue anymore since none of our components use window.contentOrientation or rotation out of the box.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.