From 4a966785803d09683f83a69116d8e0fb1009eae8 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Thu, 5 Apr 2018 11:56:44 +0200 Subject: [PATCH] Fixes a bug where progress bars were not 100% filled visually (slightly off) --- components/ProgressBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ProgressBar.qml b/components/ProgressBar.qml index 5fc5ec9b..8fcb8e07 100644 --- a/components/ProgressBar.qml +++ b/components/ProgressBar.qml @@ -100,7 +100,7 @@ Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left height: bar.height - property int maxWidth: bar.width - 4 * scaleRatio + property int maxWidth: bar.width * scaleRatio width: (maxWidth * fillLevel) / 100 radius: 8 // could change color based on progressbar status; if(item.fillLevel < 99 )