diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:42:18 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-13 21:42:18 +0200 |
commit | 542d3489f45111aaca5514495af3847cf39e335b (patch) | |
tree | bfe7f5351a3d0869df41abcc8ec50eeb39327ebd | |
parent | abdf3b1eaba8151f1b8e862750c38cb7a5411d2a (diff) | |
download | sowatch-542d3489f45111aaca5514495af3847cf39e335b.tar.gz sowatch-542d3489f45111aaca5514495af3847cf39e335b.zip |
implement scroll indicators properly
-rw-r--r-- | metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml | 6 |
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" } |