@@ -224,6 +224,8 @@ var kTitleLabelCode = 'Label { \n\
225// %1 is used as extra anchors of emblemIcon
225// %1 is used as extra anchors of emblemIcon
226// %2 is used as color of emblemIcon
226// %2 is used as color of emblemIcon
227+// FIXME The width code is a
228+// Workaround for bug https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1421293
227var kEmblemIconCode = 'Icon { \n\
229var kEmblemIconCode = 'Icon { \n\
228 id: emblemIcon; \n\
230 id: emblemIcon; \n\
229 objectName: "emblemIcon"; \n\
231 objectName: "emblemIcon"; \n\
@@ -235,6 +237,7 @@ var kEmblemIconCode = 'Icon { \n\
235 source: cardData && cardData["emblem"] || ""; \n\
237 source: cardData && cardData["emblem"] || ""; \n\
236 color: %2; \n\
238 color: %2; \n\
237 height: source != "" ? titleLabel.font.pixelSize : 0; \n\
239 height: source != "" ? titleLabel.font.pixelSize : 0; \n\
240+ width: implicitWidth > 0 && implicitHeight > 0 ? (implicitWidth / implicitHeight * height) : implicitWidth; \n\
240// %1 is used as anchors of touchdown effect
243// %1 is used as anchors of touchdown effect