summaryrefslogtreecommitdiff
path: root/metawatch/qml/com/javispedro/sowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-13 21:42:18 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-13 21:42:18 +0200
commit542d3489f45111aaca5514495af3847cf39e335b (patch)
treebfe7f5351a3d0869df41abcc8ec50eeb39327ebd /metawatch/qml/com/javispedro/sowatch
parentabdf3b1eaba8151f1b8e862750c38cb7a5411d2a (diff)
downloadsowatch-542d3489f45111aaca5514495af3847cf39e335b.tar.gz
sowatch-542d3489f45111aaca5514495af3847cf39e335b.zip
implement scroll indicators properly
Diffstat (limited to 'metawatch/qml/com/javispedro/sowatch')
-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"
}