summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-19 06:34:34 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:30 +0100
commitfd31dfe40d1e0a2e0352b16fbc72d3d529905eb6 (patch)
treecd7b71d020627c235972a04560312890bf79e011 /mobile-widgets/qml
parentc797038bd8cc4a6f058069dbd34471242529eaab (diff)
downloadsubsurface-fd31dfe40d1e0a2e0352b16fbc72d3d529905eb6.tar.gz
Mobile/filtering: use margins instead of rectangles to create space
I'm not sure why this had initially failed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml9
1 files changed, 3 insertions, 6 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index d41057567..33668616b 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -401,13 +401,13 @@ Kirigami.ScrollablePage {
anchors.left: parent.left
anchors.right: parent.right
- Rectangle { // margins didn't work, but adding a rectangle did
- width: Kirigami.Units.gridUnit / 4
- }
+ anchors.leftMargin: Kirigami.Units.gridUnit / 2
+ anchors.rightMargin: Kirigami.Units.gridUnit / 2
onVisibleChanged: numShown.text = diveModel.shown()
Controls.TextField {
id: sitefilter
verticalAlignment: TextInput.AlignVCenter
+ Layout.fillWidth: true
text: ""
placeholderText: "Full text search"
onAccepted: {
@@ -428,9 +428,6 @@ Kirigami.ScrollablePage {
// it gets set whenever visibility or the search text changes
text: ""
}
- Rectangle {
- width: Kirigami.Units.regularSpacing
- }
}
}