fix renderCap overflow issue

This commit is contained in:
aboveyunhai 2019-11-27 16:16:22 -05:00
parent dd7156712d
commit a1f8e6c19f

View File

@ -95,7 +95,7 @@ export default class CircularProgress extends React.PureComponent {
return (
<View style={style}>
<Svg width={size + padding} height={size + padding}>
<G rotation={rotation} originX={size / 2} originY={size / 2}>
<G rotation={rotation} originX={(size + padding) / 2} originY={(size + padding) / 2}>
{backgroundColor && (
<Path
d={backgroundPath}