Group :: Sistema/Bibliotecas
RPM: qt5-quickcontrols
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-revert-qtbug63437.patch
Download
Download
commit 3d44442331ba6f1ba7a5d5ad9f3834993911e288
Author: Allan Sandfeld Jensen <allan.jensen@qt.io>
Date: Tue Nov 27 13:42:11 2018 +0100
Fix scroll position after resize
We didn't update the position if it ended up with an invalid value.
Fixes: QTBUG-63437
Change-Id: Idc4d3b0cb43fd63bdb0ff10b4162dfabe49455df
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
diff --git b/src/controls/Private/ScrollViewHelper.qml a/src/controls/Private/ScrollViewHelper.qml
index 4f1d59f0..53050108 100644
--- b/src/controls/Private/ScrollViewHelper.qml
+++ a/src/controls/Private/ScrollViewHelper.qml
@@ -78,8 +78,6 @@ Item {
scrollHelper.availableWidth = viewport.width
scrollHelper.availableHeight = viewport.height
blockUpdates = false;
- hscrollbar.valueChanged();
- vscrollbar.valueChanged();
}
}
@@ -135,11 +133,8 @@ Item {
anchors.leftMargin: leftMargin
anchors.bottomMargin: bottomMargin
onScrollAmountChanged: {
- var scrollableAmount = scrollable ? scrollAmount : 0
if (flickableItem && (flickableItem.atXBeginning || flickableItem.atXEnd)) {
- value = Math.min(scrollableAmount, flickableItem.contentX - flickableItem.originX);
- } else if (value > scrollableAmount) {
- value = scrollableAmount;
+ value = flickableItem.contentX - flickableItem.originX
}
}
onValueChanged: {