Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12573

Flickable doesn't work well when boundsBehavior is StopAtBounds and there is less content than the height of the flickable

    XMLWordPrintable

Details

    • a0b531163a79c9097185b580fdf4aa8157cead41

    Description

      Trying to scroll a Flickable whose content is less than the height of the flickable, and which is set to boundsBehavior: Flickable.StopAtBounds makes the Flickable content jump at the bottom.

      Steps to reproduce :

      1. Run the code below in qmlviewer.exe
      2. Try to flick down the list, as if you were trying to display the next items
      3. Observe that the content jumps to the bottom of the window

      import QtQuick 2.0
      
      Rectangle {
      	width: 200
      	height: 200
      
      	Flickable {
      		anchors.fill: parent
      		contentHeight: contentItem.childrenRect.height
      		boundsBehavior: Flickable.StopAtBounds  // Commenting out this removes the buggy behavior
      
      		Column {
      			Repeater {
      				model:  10
      				Text {text: "item" + index}
      			}
      		}
      	}
      }
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            gregschlom Gregory Schlomoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes