From d5d8f9a4abd6ee9c2cf2e7b938b6dd8313dc5794 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 27 Jun 2021 11:57:39 +0300 Subject: Reference ListView from ChatPage instead of Message --- qml/ChatPage.qml | 1 + qml/Message.qml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index dfa5a4c..3099488 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -105,6 +105,7 @@ Kirigami.ScrollablePage { delegate: Message { message: chatPage.context.getMessage(msgId) context: chatPage.context + width: ListView.view.width } } diff --git a/qml/Message.qml b/qml/Message.qml index feed6c8..417c086 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -18,7 +18,6 @@ RowLayout { readonly property DcMessage quoteMessage: message.quotedMessage readonly property DcContact quoteFrom: quoteMessage ? context.getContact(quoteMessage.fromId) : null - width: ListView.view.width layoutDirection: message.fromId == 1 ? Qt.RightToLeft : Qt.LeftToRight readonly property string overrideName: message.getOverrideSenderName() -- cgit v1.2.3-70-g09d2