← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1318017] Re: Flickable contents appear in a wrong position

 

** No longer affects: ubuntu-ui-toolkit

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

Title:
  Flickable contents appear in a wrong position

Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  If there is a Flickable Component inside a Page and if the contents of the Flickable do not fill the whole Page (flickable.contentHeight < page.height), the Flickable initially displays its contents in a wrong position. There is a gap between the header and the contents of the Flickable which seems to be of the same size as the header.
  After touching the Flickable once, the Flickable renders its children correctly.

  Example code:

  import QtQuick 2.0
  import Ubuntu.Components 0.1

  MainView {
      applicationName: "com.ubuntu.developer.nikwen.flickable-test"

      width: units.gu(50)
      height: units.gu(75)

      Page {
          title: "Flickable Test"

          Flickable {
              anchors.fill: parent

              contentHeight: rect.height

              Rectangle {
                  id: rect
                  width: parent.width
                  height: 300 //If this is bigger than the size of the Page,
                              //however, everything will work fine
                  color: "red"
              }
          }
      }
  }

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