summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Marco Martin <notmart@gmail.com>2016-04-19 19:11:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-19 10:35:07 -0700
commitb3d0d9fd4eb192ebefe1fdc7b02f3d989f40b36a (patch)
tree5cd839c1d46604cc150aed094f082398266912b9 /mobile-widgets
parent660f421d6d690f363893e8ca0edcd8203df73582 (diff)
downloadsubsurface-b3d0d9fd4eb192ebefe1fdc7b02f3d989f40b36a.tar.gz
Don't put margins outside the internal ListView
put the margins only around the fullscreen delegate of the listview, making the listview go all trough the screen edges. This because the cutted effect when the list view is half scrolled looks quite ugly. Making the ListView reach the borders also moves the scroll indicator at the screen edge where it conventionally is. Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml4
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml2
2 files changed, 5 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index bda3dddb4..2354ef14d 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -34,6 +34,10 @@ Kirigami.Page {
title: diveDetailsListView.currentItem ? diveDetailsListView.currentItem.modelData.dive.location : "Dive details"
state: "view"
+ leftPadding: 0
+ topPadding: 0
+ rightPadding: 0
+ bottomPadding: 0
states: [
State {
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml
index c10c38965..cec490815 100644
--- a/mobile-widgets/qml/DiveDetailsView.qml
+++ b/mobile-widgets/qml/DiveDetailsView.qml
@@ -36,7 +36,7 @@ Item {
top: parent.top
left: parent.left
right: parent.right
- margins: Math.round(Kirigami.Units.gridUnit / 2)
+ margins: Kirigami.Units.gridUnit
}
columns: 4
rowSpacing: Kirigami.Units.smallSpacing * 2