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

Flickable ignores margins when determining the flick direction

XMLWordPrintable

    • 583a99ae6688f526bb4f1877d2f253523903c9ad (qt/qtdeclarative/dev) 97cc020b720723397925c6c95739a48bff9b9ca0 (qt/qtdeclarative/5.15)

      When a flickable has the "flickableDirection" property set to Flickable.AutoFlickDirection (the default), if the flickable height is equal to the contentHeight, it will never scroll vertically.

      This works fine when topMargin or bottomMargin are set to 0, but fails otherwise. Please try the attached test case: the green rectangle is partially off the viewport, yet it cannot be scrolled up.
      If you modify the test case and add "flickableDirection: Flickable.VerticalFlick", then it will start working.

      At a first glance, the problem seems to be in QQuickFlickable::[xy]flick(), that don't take the margins into account.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mardy Alberto Mardegan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes