Set the height of statedelegates

This commit is contained in:
Tobias Fella
2021-11-16 00:45:42 +01:00
parent 740662e3f0
commit c81ca6f8bb
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ import NeoChat.Dialog 1.0
RowLayout {
id: row
height: label.contentHeight
Kirigami.Avatar {
id: icon
Layout.preferredWidth: Kirigami.Units.iconSizes.small
@@ -36,6 +38,7 @@ RowLayout {
}
Label {
id: label
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
Layout.preferredHeight: icon.height

View File

@@ -356,6 +356,7 @@ Kirigami.ScrollablePage {
leftPadding: Kirigami.Units.gridUnit * 1.5 + Kirigami.Units.smallSpacing
topPadding: 0
bottomPadding: 0
height: contentItem.height
contentItem: StateDelegate { }
implicitWidth: messageListView.width - Kirigami.Units.largeSpacing
}