summaryrefslogtreecommitdiff
path: root/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
index 37b9093..6af7b18 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
@@ -68,7 +68,7 @@ ListView {
}
Rectangle {
- id: indicatorContainer
+ id: indicatorCont
visible: list.indicator && (list.contentHeight > list.height)
anchors.top: parent.top
anchors.right: parent.right
@@ -86,8 +86,8 @@ ListView {
anchors.left: parent.left
anchors.leftMargin: 1
- y: (list.contentY / list.contentHeight) * indicatorContainer.height
- height: Math.max(minHeight, (list.height / list.contentHeight) * indicatorContainer.height)
+ y: list.visibleArea.yPosition * indicatorCont.height
+ height: Math.max(minHeight, list.visibleArea.heightRatio * indicatorCont.height)
color: "black"
}