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

ListView horizontal scrolling makes the view go outside bounds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Alpha
    • 5.7.0
    • None
    • Windows 10 64bit under Angle
    • 8eada7ae7d41a2d93142ea1a6454ab2bbb0998ed

    Description

      With the following snipped of code the ListView can scroll horizontally.
      However the flickable doesn't stop at bounds nor overshoots and go back to bounds.

      import QtQuick 2.7
      import QtQuick.Window 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
         ListView {
             id: listView
             anchors.fill: parent
             model: 100
             spacing: 5
             delegate: Rectangle {
                 border.width: 3
                 border.color: "black"
                 width: listView.width + 300
                 height: 80
             }
             flickableDirection: Flickable.HorizontalAndVerticalFlick
         }
      }
      

      For reproducing it just flick horizontally.
      I would expect the ListView to overshoot on the left and right bounds and go back

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cuke Filippo Cucchetto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes