Set the height of statedelegates
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user