content page: add bottom padding

This commit is contained in:
end-4
2025-06-21 01:05:04 +02:00
parent d5a9ae32f2
commit f66e26d4cc
@@ -8,11 +8,12 @@ Flickable {
id: root id: root
property real baseWidth: 500 property real baseWidth: 500
property bool forceWidth: false property bool forceWidth: false
property real bottomContentPadding: 100
default property alias data: contentColumn.data default property alias data: contentColumn.data
clip: true clip: true
contentHeight: contentColumn.implicitHeight contentHeight: contentColumn.implicitHeight + root.bottomContentPadding // Add some padding at the bottom
implicitWidth: contentColumn.implicitWidth implicitWidth: contentColumn.implicitWidth
ColumnLayout { ColumnLayout {
@@ -20,7 +21,6 @@ Flickable {
width: root.forceWidth ? root.baseWidth : Math.max(root.baseWidth, implicitWidth) width: root.forceWidth ? root.baseWidth : Math.max(root.baseWidth, implicitWidth)
anchors { anchors {
top: parent.top top: parent.top
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
margins: 10 margins: 10
} }