mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
QML UI: make edit page scrollable
And have a tiny bit of space around it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7f0c7eeb24
commit
636904e078
2 changed files with 11 additions and 4 deletions
|
@ -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 { }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue