on xenial help sign in
fix count emblem width
5da3acbMichael Zanetti
Launcher/LauncherDelegate.qml+2−2
@@ -80,7 +80,7 @@ Item {
80 top: parent.top
80 top: parent.top
81 margins: -units.dp(1)
81 margins: -units.dp(1)
82 }
82 }
83− width: Math.min(units.gu(7.5), Math.max(units.gu(3), countLabel.implicitWidth + units.gu(2.5)))
83+ width: Math.min(root.itemWidth, Math.max(units.gu(3), countLabel.implicitWidth + units.gu(2.5)))
84 height: units.gu(3)
84 height: units.gu(3)
85 source: "graphics/notification.sci"
85 source: "graphics/notification.sci"
86 visible: root.count > 0
86 visible: root.count > 0
@@ -89,7 +89,7 @@ Item {
89 id: countLabel
89 id: countLabel
90 text: root.count
90 text: root.count
91 anchors.centerIn: parent
91 anchors.centerIn: parent
92− width: units.gu(6)
92+ width: root.itemWidth - units.gu(1)
93 horizontalAlignment: Text.AlignHCenter
93 horizontalAlignment: Text.AlignHCenter
94 elide: Text.ElideRight
94 elide: Text.ElideRight
95 color: "white"
95 color: "white"