if (position === 'left') {
      if (mirror) {
        x = this.right + padding;

        if (crossAlign === 'near') {