From c81ca6f8bb88eed9e7256356b718d03072076e8b Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 16 Nov 2021 00:45:42 +0100 Subject: [PATCH] Set the height of statedelegates --- imports/NeoChat/Component/Timeline/StateDelegate.qml | 3 +++ imports/NeoChat/Page/RoomPage.qml | 1 + 2 files changed, 4 insertions(+) diff --git a/imports/NeoChat/Component/Timeline/StateDelegate.qml b/imports/NeoChat/Component/Timeline/StateDelegate.qml index d77c39ed4..c0872dd39 100644 --- a/imports/NeoChat/Component/Timeline/StateDelegate.qml +++ b/imports/NeoChat/Component/Timeline/StateDelegate.qml @@ -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 diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 02ce3dc98..00af981a4 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -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 }