Skip to content

Commit

Permalink
Merge pull request #3 from odilonjk/master
Browse files Browse the repository at this point in the history
changing calc of arrow
  • Loading branch information
xaksis committed Jan 31, 2018
2 parents 8baa9e9 + 9953ccd commit dbd2dfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Wizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export default {
var stepSize = 100/this.steps.length;
var currentStepStart = stepSize * this.currentStep;
var currentStepMiddle = currentStepStart + (stepSize/2);
return 'calc('+currentStepMiddle+'% - 14px)'
if(this.steps.length == 1)
return 'calc('+currentStepMiddle+'%)'
else
return 'calc('+currentStepMiddle+'% - 14px)'
},
currentSlot() {
return this.steps[this.currentStep].slot;
Expand Down

0 comments on commit dbd2dfb

Please sign in to comment.