fix(StatusRoundedImage): ensure images are scaled and positioned properly

Closes #172
This commit is contained in:
Pascal Precht 2021-06-23 12:19:08 +02:00 committed by Pascal Precht
parent 70332a3f41
commit 3d0688b778
1 changed files with 5 additions and 2 deletions

View File

@ -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
}