From 1574c4bc9ecff4f912cc4157fc33b2cdd883c50b Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 24 Aug 2018 16:04:34 +0200 Subject: [PATCH] fix(Icon): add a little fix to avoid bad resize on Icon --- ui/modules/Common/Image/Icon.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/modules/Common/Image/Icon.qml b/ui/modules/Common/Image/Icon.qml index 5b8f97f4c..fdc6c5e5e 100644 --- a/ui/modules/Common/Image/Icon.qml +++ b/ui/modules/Common/Image/Icon.qml @@ -26,6 +26,10 @@ Item { } anchors.centerIn: parent + + width: iconSize + height: iconSize + fillMode: Image.PreserveAspectFit source: Utils.resolveImageUri(icon) sourceSize.width: getIconSize()