on xenial help sign in
Reverted accidental change to progress-bar calculation.
024d83cMirco Müller
qml/Launcher/LauncherDelegate.qml+2−1
@@ -112,6 +112,7 @@ Item {
112 }
112 }
113 height: units.gu(1)
113 height: units.gu(1)
114 visible: root.progress > -1
114 visible: root.progress > -1
115+ property int adjustedWidth: width - units.gu(2)
115 color: UbuntuColors.darkGrey
116 color: UbuntuColors.darkGrey
116 borderSource: "none"
117 borderSource: "none"
117
118
@@ -121,7 +122,7 @@ Item {
121 top: parent.top
122 top: parent.top
122 bottom: parent.bottom
123 bottom: parent.bottom
123 }
124 }
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)
125 clip: true
126 clip: true
126
127
127 UbuntuShape {
128 UbuntuShape {