diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-10 15:33:04 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-17 05:33:57 +0000 |
commit | a2797c7ddbcf7b0942b871c145967e92df31bfad (patch) | |
tree | fc28ce0f37118b915a3d2bfb47a8357cb118c3bc /src/network/ssl | |
parent | 826e076ef53a5809dee7d887b16ed961895049ea (diff) | |
download | qtbase-a2797c7ddbcf7b0942b871c145967e92df31bfad.tar.gz |
Take overshoot into account when laying out QAbstractScrollArea
QAbstractScrollAreaPrivate::layoutChildren() positions the viewport, but
did not take the overshoot from scrolling with a scroller into account.
If the scroll area was resized during a scroll, then this resulted in the
roll back overcompensating for the overshoot, placing the viewport outside
the visible area.
Fix this by taking the overshoot into account when positioning the
viewport.
Add a test case. We have to use QWindow-based mouse event simulation, as
the QWidget based move events use QCursor::setPos, which doesn't reliably
go through the gesture framework.
Done-with: Volker Hilsheimer <volker.hilsheimer@qt.io>
Done-with: Zhang Hao <zhanghao@uniontech.com>
Fixes: QTBUG-94769
Change-Id: Idf650c91e5a9cffa996e23e743939243b1d4fcc0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit f7a4a79c62daeba9ab5545c5e0a1f36d5e1fce6b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/network/ssl')
0 files changed, 0 insertions, 0 deletions