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

    Details

    • Platform/s:
      macOS, Windows
    • Commits:
      ff30fc5f5f637da6a06a33ae0e55d5e4b798099d (qt/qtquickcontrols2/5.12)

      Description

      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

        Attachments

        1. qtbug74000.zip
          2 kB
          Shveta Mittal

          Issue Links

          For Gerrit Dashboard: QTBUG-74000
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              richard Richard Moe Gustavsen
              Reporter:
              shmittal Shveta Mittal (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes