- Added support so that if the dropdown were going off the right side,
  it flips the dropdown to be on the left side of the mouse. Also
  required changing the caret to be in the correct place.