Set the height of statedelegates
This commit is contained in:
@@ -13,6 +13,8 @@ import NeoChat.Dialog 1.0
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
id: row
|
id: row
|
||||||
|
|
||||||
|
height: label.contentHeight
|
||||||
|
|
||||||
Kirigami.Avatar {
|
Kirigami.Avatar {
|
||||||
id: icon
|
id: icon
|
||||||
Layout.preferredWidth: Kirigami.Units.iconSizes.small
|
Layout.preferredWidth: Kirigami.Units.iconSizes.small
|
||||||
@@ -36,6 +38,7 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
id: label
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: icon.height
|
Layout.preferredHeight: icon.height
|
||||||
|
|||||||
@@ -356,6 +356,7 @@ Kirigami.ScrollablePage {
|
|||||||
leftPadding: Kirigami.Units.gridUnit * 1.5 + Kirigami.Units.smallSpacing
|
leftPadding: Kirigami.Units.gridUnit * 1.5 + Kirigami.Units.smallSpacing
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
|
height: contentItem.height
|
||||||
contentItem: StateDelegate { }
|
contentItem: StateDelegate { }
|
||||||
implicitWidth: messageListView.width - Kirigami.Units.largeSpacing
|
implicitWidth: messageListView.width - Kirigami.Units.largeSpacing
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user