measure the proper elements

Change-Id: I938abac5001c980e664ed7e5df41fdf0cacfafbc
This commit is contained in:
Marco Martin 2015-04-01 13:11:10 +02:00
parent 67a64e8763
commit b2583a9368

View File

@ -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
}
}
}