fix: fix text in bubbles being too low

This commit is contained in:
Jonathan Rainville 2020-10-06 11:07:12 -04:00 committed by Iuri Matias
parent ec22de8c24
commit b05a9a8ff6
1 changed files with 7 additions and 3 deletions

View File

@ -54,9 +54,13 @@ Item {
h += audioPlayerLoader.height;
break;
default:
if (!chatImageContent.active && !chatReply.active) {
h -= chatVerticalPadding
}
h += chatText.visible ? chatText.height : 0;
h += chatImageContent.visible ? chatImageContent.height: 0;
h += chatReply.visible ? chatReply.height : 0;
h += chatImageContent.active ? chatImageContent.height: 0;
h += chatReply.active ? chatReply.height : 0;
}
return h;
}
@ -102,7 +106,7 @@ Item {
id: chatText
longChatText: chatBox.longChatText
anchors.top: chatReply.bottom
anchors.topMargin: chatBox.chatVerticalPadding
anchors.topMargin: chatReply.active ? chatBox.chatVerticalPadding : 0
anchors.left: parent.left
anchors.leftMargin: chatBox.chatHorizontalPadding
anchors.right: chatBox.longChatText ? parent.right : undefined