From b3d0d9fd4eb192ebefe1fdc7b02f3d989f40b36a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 19 Apr 2016 19:11:07 +0200 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 4 ++++ mobile-widgets/qml/DiveDetailsView.qml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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