Set faces to fit parent height

This commit is contained in:
Angela Mazzurco 2017-07-26 17:35:06 +02:00
parent 9c7a356032
commit d1884c3b86
2 changed files with 3 additions and 1 deletions

View File

@ -142,6 +142,8 @@ Item
{ {
visible: !compRoot.has_avatar visible: !compRoot.has_avatar
hash: compRoot.gxs_id hash: compRoot.gxs_id
anchors.fill: parent
iconSize: parent.height
} }
MouseArea MouseArea

View File

@ -24,7 +24,7 @@ Item
{ {
for (y = 0 ; y< nPieces ; y++) for (y = 0 ; y< nPieces ; y++)
{ {
ctx.drawImage(images[y], 0, 0 ) ctx.drawImage(images[y], 0, 0, iconSize, iconSize )
} }
} }
} }