summaryrefslogtreecommitdiff
path: root/metawatch/qml/com/javispedro
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-12-03 00:00:07 +0100
committerJavier S. Pedro <maemo@javispedro.com>2011-12-03 00:00:07 +0100
commitcbf8e3ad49917dc71e8c5f6413c55f266c1c4ad3 (patch)
tree0c377c57192afdde1f5bf9ea7af5ce9f3fe25a03 /metawatch/qml/com/javispedro
parentd5b5cfc83e1247ebc18ef2024f07bdd37d41164b (diff)
downloadsowatch-cbf8e3ad49917dc71e8c5f6413c55f266c1c4ad3.tar.gz
sowatch-cbf8e3ad49917dc71e8c5f6413c55f266c1c4ad3.zip
change the way buttons work in declarativewatchlets
Diffstat (limited to 'metawatch/qml/com/javispedro')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml8
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml1
2 files changed, 8 insertions, 1 deletions
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
index 3e445fb..0fb0755 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
@@ -49,7 +49,13 @@ ListView {
}
if (currentItemTop <= 0) {
// If the previous item now is still not visible, scroll
- contentY -= 96/3;
+ var newContentY = contentY - 96/3;
+
+ if (newContentY < 0) {
+ contentY = 0; // Never overscroll.
+ } else {
+ contentY = newContentY;
+ }
}
}
}
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml
index 8aa494c..2c8b837 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml
@@ -8,6 +8,7 @@ Rectangle {
Row {
anchors.fill: parent
+ anchors.margins: 1
Text {
id: label
font.bold: true