← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1487667] [NEW] Setting automaticOrientation to false does not take any effect

 

Public bug reported:

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
        }
    }
}

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1487667

Title:
  Setting automaticOrientation to false does not take any effect

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

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
          }
      }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1487667/+subscriptions