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>
This commit is contained in:
Marco Martin 2016-04-19 19:11:07 +02:00 committed by Dirk Hohndel
parent 660f421d6d
commit b3d0d9fd4e
2 changed files with 5 additions and 1 deletions

View file

@ -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 {

View file

@ -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