Floor devicePixelRatio in ProgressBar before use
This matches what happens in the C++ SVG code Change-Id: Ide914751d3ba18d7e4d62c4872651998bc226900
This commit is contained in:
parent
55368fac23
commit
4d8f9c55c0
@ -83,8 +83,8 @@ Item {
|
||||
id: background
|
||||
|
||||
anchors.centerIn: parent
|
||||
width: _isVertical ? Math.round(barSvg.elementSize("hint-bar-size").width * units.devicePixelRatio) : parent.width
|
||||
height: _isVertical ? parent.height : Math.round(barSvg.elementSize("hint-bar-size").height * units.devicePixelRatio)
|
||||
width: _isVertical ? barSvg.elementSize("hint-bar-size").width * Math.floor(units.devicePixelRatio) : parent.width
|
||||
height: _isVertical ? parent.height : barSvg.elementSize("hint-bar-size").height * Math.floor(units.devicePixelRatio)
|
||||
|
||||
imagePath: barSvg.imagePath
|
||||
prefix: "bar-inactive"
|
||||
|
Loading…
Reference in New Issue
Block a user