on xenial help sign in
Reverted accidental change to progress-bar calculation.
commit024d83c2401a6d7f867d7c7a1bff7b7e5bcd3ba4 authorMirco Müller <mirco.mueller@ubuntu.com> dateTue 23 Jun 2015, 16:30 (11 years ago) parent3446557
1 file changed+2−1
qml/Launcher/LauncherDelegate.qml+2−1
qml/Launcher/LauncherDelegate.qml+2−1
@@ -112,6 +112,7 @@ Item {
112112 }
113113 height: units.gu(1)
114114 visible: root.progress > -1
115+ property int adjustedWidth: width - units.gu(2)
115116 color: UbuntuColors.darkGrey
116117 borderSource: "none"
117118
@@ -121,7 +122,7 @@ Item {
121122 top: parent.top
122123 bottom: parent.bottom
123124 }
124− width: Math.min(100, root.progress) / 100 * parent.width + units.gu(1)
125+ width: Math.min(100, root.progress) / 100 * parent.adjustedWidth + units.gu(1)
125126 clip: true
126127
127128 UbuntuShape {