From 416417d15ab6d1bab29f1d7aec0b45398d11f8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Fri, 28 Jul 2023 15:01:31 -0400 Subject: [PATCH] contactmessagedelegate: fix placement on resize Change-Id: Icd84dcc248ee0097546a23eed03f4b1379337d0e GitLab: #1268 --- .../commoncomponents/ContactMessageDelegate.qml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/app/commoncomponents/ContactMessageDelegate.qml b/src/app/commoncomponents/ContactMessageDelegate.qml index 7026a7413..a939ca538 100644 --- a/src/app/commoncomponents/ContactMessageDelegate.qml +++ b/src/app/commoncomponents/ContactMessageDelegate.qml @@ -34,12 +34,12 @@ Column { property alias messageToSend: textLabel.text width: ListView.view ? ListView.view.width : 0 + height: timestampItem.height + textLabel.height spacing: 0 - ColumnLayout { + Item { anchors.horizontalCenter: parent.horizontalCenter - width: parent.width - spacing: 0 + height: timestampItem.height + textLabel.height TimestampInfo { id: timestampItem @@ -48,14 +48,18 @@ Column { showTime: root.showTime formattedTime: root.formattedTime formattedDay: root.formattedDay - Layout.alignment: Qt.AlignHCenter + + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + } Label { id: textLabel - Layout.alignment: Qt.AlignCenter - width: parent.width + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: timestampItem.bottom + text: Body horizontalAlignment: Qt.AlignHCenter font.pointSize: JamiTheme.smallFontSize -- GitLab