summaryrefslogtreecommitdiffstats
path: root/src/controls/ScrollView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/ScrollView.qml')
-rw-r--r--src/controls/ScrollView.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml
index 8dc1bd1b8..79ceb5848 100644
--- a/src/controls/ScrollView.qml
+++ b/src/controls/ScrollView.qml
@@ -135,6 +135,8 @@ FocusScope {
/*! \internal */
property int __scrollBarTopMargin: 0
/*! \internal */
+ property int __viewTopMargin: 0
+ /*! \internal */
property alias __horizontalScrollBar: scroller.horizontalScrollBar
/*! \internal */
property alias __verticalScrollBar: scroller.verticalScrollBar
@@ -231,7 +233,7 @@ FocusScope {
property bool verticalRecursionGuard: false
horizontalMaximumValue: flickableItem ? flickableItem.contentWidth - viewport.width : 0
- verticalMaximumValue: flickableItem ? flickableItem.contentHeight - viewport.height : 0
+ verticalMaximumValue: flickableItem ? flickableItem.contentHeight - viewport.height + __viewTopMargin : 0
Connections {
target: flickableItem