diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-04 12:27:13 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-04 17:08:58 -0700 |
commit | 636904e078b814d377d6f4a087a2836ed7a0f206 (patch) | |
tree | ea8f5f75186a42667ad257549501a66e3b95a574 /mobile-widgets | |
parent | 7f0c7eeb24ea5502acc25c08dc9807dd17d141b3 (diff) | |
download | subsurface-636904e078b814d377d6f4a087a2836ed7a0f206.tar.gz |
QML UI: make edit page scrollable
And have a tiny bit of space around it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 13 | ||||
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 7246843f8..c6243c531 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -234,9 +234,16 @@ Kirigami.Page { ScrollIndicator.horizontal: ScrollIndicator { } } } - - DiveDetailsEdit { - id: detailsEdit + Flickable { + id: detailsEditFlickable visible: diveDetailsPage.state != "view" ? true : false + anchors.fill: parent + leftMargin: Kirigami.Units.smallSpacing + rightMargin: Kirigami.Units.smallSpacing + contentHeight: detailsEdit.height + DiveDetailsEdit { + id: detailsEdit + } + ScrollBar.vertical: ScrollBar { } } } diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 79bd5724e..143ebb8d2 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -73,7 +73,7 @@ Item { } height: editArea.height - width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding + width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding - Kirigami.Units.smallSpacing * 2 ColumnLayout { id: editArea spacing: Kirigami.Units.smallSpacing |