css - Google Maps API v3 autocomplete text width -


https://developers.google.com/maps/documentation/javascript/places-autocomplete#style_autocomplete describes how deal searchbox. in old maps version when using directions suggestions appear in full (so text width wider actual box). have not been able find anyway accomplish , using https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?csw=1 code.

thanks in advance.

the autocomplete generates div .pac-container class, can add css rule , add priority using !important option.

in css add:

.pac-container {   width: 200px !important; } 

replace 200px desired width. believe should job.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -