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

[Reg 5.12.0->5.12.1]Qml ScrollView contentHeight is not getting calculated according to Flow's implicitHeight changes

XMLWordPrintable

    • macOS, Windows
    • ff30fc5f5f637da6a06a33ae0e55d5e4b798099d (qt/qtquickcontrols2/5.12)

      When using a Flow within an QQC2 ScrollView, the ScrollView doesn't track the Flow's implicitHeight changes and calculates the contentHeight wrong. It is necessary to add a manual binding contentHeight: flow.implicitHeight to fix it.

      Please refer to the attached sample.
      You can clearly see in the console.log the values being calculated for the contentHeight resulting in being able to scroll way past the bottom of the Flow.

      If you uncomment line no. 24, it will work fine.
      It is a regression from 5.12.0

        1. qtbug74000.zip
          2 kB
          Shveta Mittal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            richard Richard Moe Gustavsen
            shmittal Shveta Mittal
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes