need to adjust the auto suggestion position according to the type.