mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
fix(StatusRoundedImage): ensure images are scaled and positioned properly
Closes #172
This commit is contained in:
parent
1a14f9ebe2
commit
5e127c7194
@ -26,9 +26,12 @@ Rectangle {
|
|||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: image
|
id: image
|
||||||
sourceSize.width: parent.implicitWidth
|
width: statusRoundImage.width
|
||||||
sourceSize.height: parent.implicitHeight
|
height: statusRoundImage.height
|
||||||
|
sourceSize.width: parent.width * 2
|
||||||
|
sourceSize.height: parent.height * 2
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
anchors.centerIn: parent
|
||||||
cache: true
|
cache: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user