prevent the autocomplete dropdown to go beyond the screen width