← Back to team overview

touch-packages team mailing list archive

[Bug 1402054] Re: Page header with no title does not have a back button

 

** Branch linked: lp:~tpeeters/ubuntu-ui-toolkit/headlock

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

Title:
  Page header with no title does not have a back button

Status in ubuntu-ui-toolkit package in Ubuntu:
  In Progress

Bug description:
  When pushing a page which does not have a title in it, the header does not have a back button therefore the user has no navigation.
  This happens if there is no title property set or it is set but with an empty string.

  This is occurring in certain applications that define the title
  dynamically and the content is occasionally blank.

  This sample illustrates:

  import QtQuick 2.0
  import Ubuntu.Components 1.1
  import Ubuntu.Components.ListItems 1.0 as ListItem
  MainView {
      width: units.gu(48)
      height: units.gu(60)
      useDeprecatedToolbar: false

      PageStack {
          id: pageStack
          Component.onCompleted: push(page0)
          Page {
              id: page0
              title: i18n.tr("Root page")
              visible: false
              Column {
                  anchors.fill: parent
                  ListItem.Standard {
                      text: i18n.tr("Page one")
                      onClicked: pageStack.push(page1, {color: UbuntuColors.orange})
                      progression: true
                  }
              }
          }
          Page {
              //title: "Rectangle"
              id: page1
              visible: false
              property alias color: rectangle.color
              Rectangle {
                  id: rectangle
                  anchors {
                      fill: parent
                      margins: units.gu(5)
                  }
              }
          }
      }
  }

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


References