Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.1.0 RC1, 5.1.0
-
None
-
583a99ae6688f526bb4f1877d2f253523903c9ad (qt/qtdeclarative/dev) 97cc020b720723397925c6c95739a48bff9b9ca0 (qt/qtdeclarative/5.15)
Description
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.
Attachments
Issue Links
- relates to
-
QTBUG-55275 Flickable::contentY is incorrect if Flickable is anchored to a non-root object and has top/bottom margins
- Reported
For Gerrit Dashboard: QTBUG-31905 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
300254,2 | Consider margins in xflick/yflick | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
301649,2 | Consider margins in xflick/yflick | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |