From 5e127c7194d1f4e266c12e7f9f043f36ebf479cc Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 23 Jun 2021 12:19:08 +0200 Subject: [PATCH] fix(StatusRoundedImage): ensure images are scaled and positioned properly Closes #172 --- ui/StatusQ/src/StatusQ/Components/StatusRoundedImage.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusRoundedImage.qml b/ui/StatusQ/src/StatusQ/Components/StatusRoundedImage.qml index b6055b9928..810665eb27 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusRoundedImage.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusRoundedImage.qml @@ -26,9 +26,12 @@ Rectangle { Image { id: image - sourceSize.width: parent.implicitWidth - sourceSize.height: parent.implicitHeight + width: statusRoundImage.width + height: statusRoundImage.height + sourceSize.width: parent.width * 2 + sourceSize.height: parent.height * 2 fillMode: Image.PreserveAspectFit + anchors.centerIn: parent cache: true }