From b2583a93689404517c9aeea43edef49b0f942b37 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 1 Apr 2015 13:11:10 +0200 Subject: [PATCH] measure the proper elements Change-Id: I938abac5001c980e664ed7e5df41fdf0cacfafbc --- src/declarativeimports/plasmastyle/ProgressBarStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmastyle/ProgressBarStyle.qml b/src/declarativeimports/plasmastyle/ProgressBarStyle.qml index 6c876ceb6..6d2e9b30f 100644 --- a/src/declarativeimports/plasmastyle/ProgressBarStyle.qml +++ b/src/declarativeimports/plasmastyle/ProgressBarStyle.qml @@ -43,7 +43,7 @@ ProgressBarStyle { preferredWidth = barSvg.elementSize("bar-inactive-left").width + barSvg.elementSize("bar-inactive-right").width } if (preferredHeight == 0) { - preferredHeight = barSvg.elementSize("bar-inactive-top").width + barSvg.elementSize("bar-inactive-bottom").width + preferredHeight = barSvg.elementSize("bar-inactive-top").height + barSvg.elementSize("bar-inactive-bottom").height } } }