forked from Shinonome/dots-hyprland
content page: add bottom padding
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user