aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ScrollBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/ScrollBar.qml')
-rw-r--r--src/imports/controls/ScrollBar.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/ScrollBar.qml b/src/imports/controls/ScrollBar.qml
index fe66e523..8f928d0c 100644
--- a/src/imports/controls/ScrollBar.qml
+++ b/src/imports/controls/ScrollBar.qml
@@ -64,8 +64,8 @@ AbstractScrollBar {
readonly property bool horizontal: control.orientation === Qt.Horizontal
x: control.leftPadding + (horizontal ? control.position * control.width : 0)
y: control.topPadding + (horizontal ? 0 : control.position * control.height)
- width: horizontal ? control.size * control.contentWidth : implicitWidth
- height: horizontal ? implicitHeight : control.size * control.contentHeight
+ width: horizontal ? control.size * control.availableWidth : implicitWidth
+ height: horizontal ? implicitHeight : control.size * control.availableHeight
states: State {
name: "active"