← Back to team overview

touch-packages team mailing list archive

[Bug 1540574] [NEW] [Page] "header" property unusable, hides contents

 

Public bug reported:

When setting the "header" property of a page, the page scrolling
mechanism stops working, so the page contents get hidden under the
header:

import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
    width: units.gu(48)
    height: units.gu(60)
    Page {
        id: page
        title: i18n.tr("Example page")
        flickable: flick

        header: PageHeader {
            title: page.title
        }
        Flickable {
            id: flick
            anchors.fill: parent
            contentHeight: contentItem.childrenRect.height
            Label {
                text: i18n.tr("Hello world!")
            }
        }
    }
}

If you run this, you won't see the "Hello world!" text unless you pan
down the view.

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

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

Title:
  [Page] "header" property unusable, hides contents

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

Bug description:
  When setting the "header" property of a page, the page scrolling
  mechanism stops working, so the page contents get hidden under the
  header:

  import QtQuick 2.4
  import Ubuntu.Components 1.3
  MainView {
      width: units.gu(48)
      height: units.gu(60)
      Page {
          id: page
          title: i18n.tr("Example page")
          flickable: flick

          header: PageHeader {
              title: page.title
          }
          Flickable {
              id: flick
              anchors.fill: parent
              contentHeight: contentItem.childrenRect.height
              Label {
                  text: i18n.tr("Hello world!")
              }
          }
      }
  }

  If you run this, you won't see the "Hello world!" text unless you pan
  down the view.

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


Follow ups