From 542d3489f45111aaca5514495af3847cf39e335b Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 13 Aug 2012 21:42:18 +0200 Subject: implement scroll indicators properly --- metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'metawatch/qml') 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" } -- cgit v1.2.3