mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix canvas face displaced down
This commit is contained in:
parent
5a1a84fc5d
commit
a87c31f2dc
@ -14,7 +14,7 @@ Item
|
||||
Image
|
||||
{
|
||||
id: imageAvatar
|
||||
width: iconSize
|
||||
width: height
|
||||
height: iconSize
|
||||
visible: true
|
||||
}
|
||||
@ -22,8 +22,8 @@ Item
|
||||
Canvas
|
||||
{
|
||||
id: canvasAvatar
|
||||
width: iconSize
|
||||
height: iconSize
|
||||
width: height
|
||||
height: canvasSizes
|
||||
visible: false
|
||||
|
||||
renderStrategy: Canvas.Threaded;
|
||||
@ -157,11 +157,17 @@ Item
|
||||
imageAvatar.source = data
|
||||
imageAvatar.visible = true
|
||||
canvasAvatar.visible = false
|
||||
|
||||
canvasAvatar.height = 0
|
||||
imageAvatar.height = iconSize
|
||||
}
|
||||
else
|
||||
{
|
||||
canvasAvatar.visible = true
|
||||
imageAvatar.visible = false
|
||||
|
||||
canvasAvatar.height = iconSize
|
||||
imageAvatar.height = 0
|
||||
}
|
||||
|
||||
facesCache.iconCache[iconId] = data;
|
||||
|
Loading…
Reference in New Issue
Block a user