Permalink
Browse files

fix(progress-bar): Minor adjutment to style calculation

Use raw percentage for setting width to prevent multiple bars from overflowing outer container
  • Loading branch information...
tmorehouse committed Aug 22, 2017
1 parent 6bd9f52 commit 14819efe6a5e5650f1d473ee4648c158a76988ea
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/components/progress-bar.vue
@@ -2,7 +2,7 @@
<div role="progressbar"
:class="progressBarClasses"
:style="progressBarStyles"
:aria-valuenow="value"
:aria-valuenow="value.toFixed(this.computedPrecision)"
:aria-valuemin="0"
:aria-valuemax="computedMax"
>
@@ -27,7 +27,7 @@
},
progressBarStyles() {
return {
width: this.progress + '%',
width: (this.value / this.computedMax) + '%',
height: this.computedHeight,
lineHeight: this.computedHeight
};

0 comments on commit 14819ef

Please sign in to comment.