← Back to team overview

touch-packages team mailing list archive

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

 

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Confirmed

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


References