function _flipXTogether(tAttachment, eAttachment, bounds, width, targetWidth, left) {
  if (left < bounds[0] && tAttachment.left === 'left') {
    if (eAttachment.left === 'right') {
      left += targetWidth;
      tAttachment.left = 'right';

      left += width;
      eAttachment.left = 'left';

    } else if (eAttachment.left === 'left') {
      left += targetWidth;
      tAttachment.left = 'right';

      left -= width;
      eAttachment.left = 'right';
    }

  } else if (left + width > bounds[2] && tAttachment.left === 'right') {
    if (eAttachment.left === 'left') {
      left -= targetWidth;
      tAttachment.left = 'left';

      left -= width;
      eAttachment.left = 'right';

    } else if (eAttachment.left === 'right') {
      left -= targetWidth;
      tAttachment.left = 'left';

      left += width;
      eAttachment.left = 'left';
    }

  } else if (tAttachment.left === 'center') {
    if (left + width > bounds[2] && eAttachment.left === 'left') {
      left -= width;
      eAttachment.left = 'right';

    } else if (left < bounds[0] && eAttachment.left === 'right') {
      left += width;
      eAttachment.left = 'left';
    }
  }

  return left;
}
Flip X "together"
@param {object} tAttachment The target attachment
@param {object} eAttachment The element attachment
@param {number[]} bounds Array of bounds of the format [left, top, right, bottom]
@param {number} width
@param targetWidth
@param {number} left
@private