Dialogs are rotated incorrectly if root item is not a MainView

Bug #1439102 reported by Alberto Mardegan on 2015-04-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
High
Christian 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.

Alberto Mardegan (mardy) wrote :
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
Christian 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.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Triaged → In Progress
importance: Undecided → Low
importance: Low → High
tags: added: orientation rotation
Christian 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  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments