Fixed rendering bug.

This commit is contained in:
James Munro 2016-01-01 20:48:11 +00:00
parent fe2ac7e8bb
commit 0d257e6bb9

View File

@ -39,13 +39,11 @@ export default class CircularProgress extends React.Component {
<Group rotation={rotation - 90} originX={size/2} originY={size/2}>
<Shape d={circlePath}
stroke={backgroundColor}
strokeCap="butt"
strokeDash={[(size - width) * Math.PI, 700]}
strokeWidth={width} />
<Shape d={circlePath}
stroke={tintColor}
strokeCap="butt"
strokeDash={[(size - width) * Math.PI * fill / 100, 700]}
strokeDash={[(size - width) * Math.PI * fill / 100, 9999]}
strokeWidth={width} />
</Group>
</Surface>