getClosestScrollPosByStepIndex(stepIndex) {
      if (stepIndex === 0) {
        return 0;
      }
      // It's possible to have [enabled - 0, disabled - 1, enabled - 2, disabled - 3] step definition and similar.
      // Consider selection of the third step at index 2, the wizard should scroll where the previous step ends,
      // but in this case the 2nd step is disabled, so we have to fallback to the first possible step.
      for (let closestStepIndex = stepIndex - 1; closestStepIndex >= 0; closestStepIndex--) {
        if (this.stepScrollOffsets[closestStepIndex] > 0) {
          return this.stepScrollOffsets[closestStepIndex];
        }
      }
      return 0;
    }
Returns to closest scroll position for the given step index.

@private
@param {Integer} stepIndex the index of a step