** Description changed:

  I have a MainView in a PageStack, as in the code below.
  The icon for the page head action appears twice, as in the attached 
screenshots: portrait.png and landscape.png
  Seems to be related to the PageStack, because if I run MainPage.qml directly 
the problem does not reproduce.
- It works fine on the desktop. It reproduces only on the device.
+ 
+ It is more obvious on the device, but also reproduces on the desktop.
+ On the desktop, the initial window looks fine, but if you resize by 
increasing the width, the second icon appears. One remains in the initial 
position and the other one is anchored to the right of the window.
+ 
  Using a BQ Aquaris E4.5 with OS build number 24.
  
  ----------
  // Main.qml
  
  import QtQuick 2.4
  import Ubuntu.Components 1.2
  
  MainView {
-     objectName: "mainView"
+     objectName: "mainView"
  
-     applicationName: "example.cos64"
+     applicationName: "example.cos64"
  
-     width: units.gu(40)
-     height: units.gu(60)
+     width: units.gu(40)
+     height: units.gu(60)
  
-     PageStack {
-         id: pageStack
+     PageStack {
+         id: pageStack
  
-         Component {
-             id: mainPage
-             MainPage {}
-         }
+         Component {
+             id: mainPage
+             MainPage {}
+         }
  
-         Component.onCompleted: {
-             push(mainPage)
-         }
-     }
+         Component.onCompleted: {
+             push(mainPage)
+         }
+     }
  }
  ----------
  // MainPage.qml
  
  import QtQuick 2.4
  import QtQuick.Layouts 1.1
  
  import Ubuntu.Components 1.2
  
  MainView {
  
-     width: units.gu(40)
-     height: units.gu(60)
+     width: units.gu(40)
+     height: units.gu(60)
  
-     Page {
+     Page {
  
-         title: i18n.tr("Example")
+         title: i18n.tr("Example")
  
-         head.actions: [
-             Action {
-                 id: openHelp
-                 iconName: "help"
-             }
-         ]
-     }
+         head.actions: [
+             Action {
+                 id: openHelp
+                 iconName: "help"
+             }
+         ]
+     }
  }
  ----------

-- 
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/1480767

Title:
  Double icons on Page head

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

Bug description:
  I have a MainView in a PageStack, as in the code below.
  The icon for the page head action appears twice, as in the attached 
screenshots: portrait.png and landscape.png
  Seems to be related to the PageStack, because if I run MainPage.qml directly 
the problem does not reproduce.

  It is more obvious on the device, but also reproduces on the desktop.
  On the desktop, the initial window looks fine, but if you resize by 
increasing the width, the second icon appears. One remains in the initial 
position and the other one is anchored to the right of the window.

  Using a BQ Aquaris E4.5 with OS build number 24.

  ----------
  // Main.qml

  import QtQuick 2.4
  import Ubuntu.Components 1.2

  MainView {
      objectName: "mainView"

      applicationName: "example.cos64"

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

      PageStack {
          id: pageStack

          Component {
              id: mainPage
              MainPage {}
          }

          Component.onCompleted: {
              push(mainPage)
          }
      }
  }
  ----------
  // MainPage.qml

  import QtQuick 2.4
  import QtQuick.Layouts 1.1

  import Ubuntu.Components 1.2

  MainView {

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

      Page {

          title: i18n.tr("Example")

          head.actions: [
              Action {
                  id: openHelp
                  iconName: "help"
              }
          ]
      }
  }
  ----------

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to