don't make the progressbar smaller than its borders
BUG:338225 Change-Id: Ia5926206b9185c82bcdf96956bc7f586c3b2d50e
This commit is contained in:
parent
5b50373b37
commit
87e3240f72
@ -101,8 +101,8 @@ Item {
|
|||||||
imagePath: background.imagePath
|
imagePath: background.imagePath
|
||||||
prefix: "bar-active"
|
prefix: "bar-active"
|
||||||
|
|
||||||
width: indeterminate ? units.gridUnit*2 : range.position
|
width: Math.max(margins.left + margins.right, (indeterminate ? units.gridUnit*2 : range.position))
|
||||||
height: 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,
|
//this can't reference its parent because needs to be loaded before it,
|
||||||
//so never bind background to anything here
|
//so never bind background to anything here
|
||||||
|
Loading…
Reference in New Issue
Block a user