From 87e3240f725b0a5be54087210ec3ece0e7176171 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 25 Sep 2014 18:31:19 +0200 Subject: [PATCH] don't make the progressbar smaller than its borders BUG:338225 Change-Id: Ia5926206b9185c82bcdf96956bc7f586c3b2d50e --- src/declarativeimports/plasmacomponents/qml/ProgressBar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml index 665b12ec6..3159ea7e7 100644 --- a/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/ProgressBar.qml @@ -101,8 +101,8 @@ Item { imagePath: background.imagePath prefix: "bar-active" - width: indeterminate ? units.gridUnit*2 : range.position - height: indeterminate ? units.gridUnit*2 : range.position + width: Math.max(margins.left + margins.right, (indeterminate ? units.gridUnit*2 : range.position)) + height: Math.max(margins.top + margins.bottom, (indeterminate ? units.gridUnit*2 : range.position)) } //this can't reference its parent because needs to be loaded before it, //so never bind background to anything here