mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 { }
|
ScrollIndicator.horizontal: ScrollIndicator { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Flickable {
|
||||||
DiveDetailsEdit {
|
id: detailsEditFlickable
|
||||||
id: detailsEdit
|
|
||||||
visible: diveDetailsPage.state != "view" ? true : false
|
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
|
height: editArea.height
|
||||||
width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding
|
width: diveDetailsPage.width - diveDetailsPage.leftPadding - diveDetailsPage.rightPadding - Kirigami.Units.smallSpacing * 2
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: editArea
|
id: editArea
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
|
|
Loading…
Add table
Reference in a new issue