Fixed loading percentage text on window resize by getting the width of the progress bar on each step.