From 7f46bafc9e5b00ba0bc3fe1d6635966c907b48fa Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 16 Jul 2019 04:54:12 -0400 Subject: [PATCH] Use HRowLayout for typingMembersBar --- src/qml/Chat/TypingMembersBar.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/qml/Chat/TypingMembersBar.qml b/src/qml/Chat/TypingMembersBar.qml index a88a97d2..7937544d 100644 --- a/src/qml/Chat/TypingMembersBar.qml +++ b/src/qml/Chat/TypingMembersBar.qml @@ -11,17 +11,17 @@ HRectangle { property alias label: typingLabel color: theme.chat.typingMembers.background - implicitWidth: childrenRect.width - implicitHeight: typingLabel.text ? childrenRect.height : 0 + implicitHeight: typingLabel.text ? typingLabel.height : 0 Behavior on implicitHeight { HNumberAnimation {} } - Row { + HRowLayout { spacing: 8 - leftPadding: spacing - rightPadding: spacing - topPadding: 2 - bottomPadding: 2 + anchors.fill: parent + Layout.leftMargin: spacing + Layout.rightMargin: spacing + Layout.topMargin: 2 + Layout.bottomMargin: 2 HIcon { id: icon @@ -34,8 +34,8 @@ HRectangle { text: chatPage.roomInfo.typingText textFormat: Text.StyledText elide: Text.ElideRight - width: typingMembersBar.width - icon.width - - parent.spacing - parent.leftPadding - parent.rightPadding + + Layout.fillWidth: true } } }