summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/SectionContainer.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/SectionContainer.qml b/components/SectionContainer.qml
index f7dfef4..60e3d59 100644
--- a/components/SectionContainer.qml
+++ b/components/SectionContainer.qml
@@ -10,6 +10,7 @@ StyledRect {
default property alias content: contentColumn.data
property real contentSpacing: Appearance.spacing.larger
+ property bool alignTop: false
Layout.fillWidth: true
implicitHeight: contentColumn.implicitHeight + Appearance.padding.large * 2
@@ -22,7 +23,8 @@ StyledRect {
anchors.left: parent.left
anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
+ anchors.top: root.alignTop ? parent.top : undefined
+ anchors.verticalCenter: root.alignTop ? undefined : parent.verticalCenter
anchors.margins: Appearance.padding.large
spacing: root.contentSpacing