summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/wasm/qwasmnativeinterface.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-04 13:09:30 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2023-05-04 19:58:50 +0000
commit2434573f5e4d0ca96a6a5808f3e0191012f83819 (patch)
tree6e3146a948f0ca3a543c347885a60aa57058cc37 /src/gui/platform/wasm/qwasmnativeinterface.cpp
parent275e0e48a97d06c122db64a3025fe22534ce37f0 (diff)
QTabBar: don't overshoot when scrolling right
Amends ca15f650a1a914bb9a41131109c46c4e52c5ebb1, after which scrolling right to fill any gap might have resulted in overshooting to a negative scrollOffset. When we scroll right to fit the current tab, then we never want to end up with a negative scroll, so clamp the result accordingly. Augment test case accordingly. Since some styles align the tab bar in the center, replace the calculation of the scroll offset with access to the private data member (which inverts the sign when compared to the calculated value). Task-number: QTBUG-113140 Fixes: QTBUG-113376 Pick-to: 6.5 6.5.1 Change-Id: Ibdc6686b9dbd41b1ae3560e2227fa121d9b20e18 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/gui/platform/wasm/qwasmnativeinterface.cpp')
0 files changed, 0 insertions, 0 deletions