adjust search dialog's postion.