fix issue #117 progress indicator stuck problem (#129)

fix issue #117 progress indicator stuck problem
This commit is contained in:
Eduardo Gómez 2020-01-22 11:44:32 +01:00 committed by GitHub
commit 531f2af213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -11,3 +11,4 @@ npm-debug.log
node_modules
.DS_Store
.idea

View file

@ -69,9 +69,11 @@ function setHeights() {
}
function setCircleStyles() {
const radiusCircle = $progressCircle.parent().width() / 2
const svgWidth = $progressCircle.parent().width();
const radiusCircle = svgWidth / 2
const borderWidth = isMobile() ? 2 : 3
$progressCircle.parent().attr('viewBox', `0 0 ${svgWidth} ${svgWidth}`)
$progressCircle.attr('stroke-width', borderWidth)
$progressCircle.attr('r', radiusCircle - (borderWidth - 1))
$progressCircle.attr('cx', radiusCircle)