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

ScrollIndicator overshoot doesn't respect paddings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • 8d093a47f52ffcebc4e61f9918985e62424658c0

    Description

      Flick the white area. Scroll indicators should stay inside the white area, but they go over the tomato-colored padding when overshooting.

      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          width: 200
          height: 200
          visible: true
      
          color: "tomato"
          Rectangle {
              anchors.fill: parent
              anchors.margins: 20
          }
      
          Flickable {
              anchors.fill: parent
              contentWidth: parent.width * 2
              contentHeight: parent.height * 2
      
              ScrollIndicator.horizontal: ScrollIndicator { padding: 22 }
              ScrollIndicator.vertical: ScrollIndicator { padding: 22 }
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes