From b340d811da7c5bbad9a54e0690e4ff822646da34 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 28 Mar 2017 09:26:39 +0200 Subject: [PATCH] fix(ui/views/App/Main/Contacts): avoid truncated avatars --- .../ui/views/App/Main/Contacts.qml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/linphone-desktop/ui/views/App/Main/Contacts.qml b/linphone-desktop/ui/views/App/Main/Contacts.qml index bf22fe03a..55e796fe2 100644 --- a/linphone-desktop/ui/views/App/Main/Contacts.qml +++ b/linphone-desktop/ui/views/App/Main/Contacts.qml @@ -223,11 +223,19 @@ ColumnLayout { } spacing: ContactsStyle.contact.spacing - Avatar { - Layout.preferredHeight: ContactsStyle.contact.avatarSize - Layout.preferredWidth: ContactsStyle.contact.avatarSize - image: $contact.vcard.avatar - username: $contact.vcard.username + Item { + Layout.preferredHeight: parent.height + Layout.preferredWidth: parent.height + + Avatar { + anchors.centerIn: parent + + image: $contact.vcard.avatar + username: $contact.vcard.username + + height: ContactsStyle.contact.avatarSize + width: ContactsStyle.contact.avatarSize + } } Text {