Position Hover Preview popover so it's not clipped

This is for #3447. Unit Tests for this have been enabled.