Setting automaticOrientation to false does not take any effect

Bug #1487667 reported by XiaoGuo, Liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When the automaticOrientation is set to false, my app still rotates when my app rotates. It does not take any effect.

MainView {
    // objectName for functional testing purposes (autopilot-qt5)
    objectName: "mainView"

    // Note! applicationName needs to match the "name" field of the click manifest
    applicationName: "com.ubuntu.developer.liu-xiao-guo.Memory"

    /*
     This property enables the application to change orientation
     when the device is rotated. The default is false.
    */
    automaticOrientation: false

    width: units.gu(60)
    height: units.gu(85)

    Page {
        title: i18n.tr("Memory Card")

        Game {
            anchors.fill: parent
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
        }
    }
}

Revision history for this message
Cris Dywan (kalikiana) wrote :

Right now this doesn't have an effect as it's no longer the toolkit rotating the app but the shell (unity8). So pending bug 1484507 we may be able to make it functional again.

In the meantime you can specify the orientation in the .desktop file by adding X-Ubuntu-Supported-Orientations=portrait

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

Other bug subscribers

Remote bug watches

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