_adjustHeaderOverflow() {
      let counter = 0;
      let isForward = true;
      const tabs = this.stepsInHeaderDOM;
      if (!tabs.length) {
        return;
      }
      const iWidth = this.progressNavigatorListDOM.getBoundingClientRect().width;
      const iCurrStep = this.getSelectedStepIndex();
      const iStepsToShow = this.steps.length ? Math.floor(iWidth / MIN_STEP_WIDTH_WITH_TITLE) : Math.floor(iWidth / MIN_STEP_WIDTH_NO_TITLE);
      [...tabs].forEach((step, index) => {
        step.setAttribute(EXPANDED_STEP, "false");
        step.setAttribute(BEFORE_EXPANDED_STEP, "false");
        step.setAttribute(AFTER_EXPANDED_STEP, "false");
        // Add "data-ui5-wizard-after-current-tab" to all tabs after the current one
        if (index > iCurrStep) {
          tabs[index].setAttribute(AFTER_CURRENT_STEP, "true");
        } else {
          tabs[index].removeAttribute(AFTER_CURRENT_STEP);
        }
      });
      // Add "data-ui5-wizard-expanded-tab" to the current step
      if (tabs[iCurrStep]) {
        tabs[iCurrStep].setAttribute(EXPANDED_STEP, "true");
      }
      // Set the "data-ui5-wizard-expanded-tab" to the steps that are expanded
      // The algorithm is as follows:
      // 1. A step towards the end is expanded
      // 	1.2. If there are no available steps towards the end a step towards the beginning is expanded
      // 2. A step towards the beginning is expanded
      // 	2.2. If there are no available steps towards the beginning a step towards the end is expanded
      for (let i = 1; i < iStepsToShow; i++) {
        if (isForward) {
          counter += 1;
        }
        if (isForward && tabs[iCurrStep + counter]) {
          tabs[iCurrStep + counter].setAttribute(EXPANDED_STEP, "true");
          isForward = !isForward;
        } else if (!isForward && tabs[iCurrStep - counter]) {
          tabs[iCurrStep - counter].setAttribute(EXPANDED_STEP, "true");
          isForward = !isForward;
        } else if (tabs[iCurrStep + counter + 1]) {
          counter += 1;
          tabs[iCurrStep + counter].setAttribute(EXPANDED_STEP, "true");
          isForward = true;
        } else if (tabs[iCurrStep - counter]) {
          tabs[iCurrStep - counter].setAttribute(EXPANDED_STEP, "true");
          counter += 1;
          isForward = false;
        }
      }
      // mark the topmost steps of both groups (in the beginning and the end),
      // using the "data-ui5-wizard-after-current-tab" and "data-ui5-wizard-expanded-tab-prev" attributes
      for (let i = 0; i < tabs.length; i++) {
        if (tabs[i].getAttribute(EXPANDED_STEP) === "true" && tabs[i - 1] && tabs[i - 1].getAttribute(EXPANDED_STEP) === "false") {
          tabs[i - 1].setAttribute(BEFORE_EXPANDED_STEP, "true");
        }
        if (tabs[i].getAttribute(EXPANDED_STEP) === "false" && tabs[i - 1] && tabs[i - 1].getAttribute(EXPANDED_STEP) === "true") {
          tabs[i].setAttribute(AFTER_EXPANDED_STEP, "true");
          break;
        }
      }
    }
Updates the expanded attribute for each ui5-wizard-tab based on the ui5-wizard width
@private