On the page I'm working on, Google Places auto-complete results are displayed 70 pixels lower where needed, leaving a space between the search field and the beginning of the results container.
The gap height is the exact height of the Chrome autofill function, so I suspect that the Autocomplete library for some reason takes this height into account when calculating the position, although I managed to disable this function in the search window.
I can fix the problem by overriding the value of the topclass attribute .pac-container(replacing the value 1234pxthat the API calculated using 1164px), but I would prefer there is a way to do this dynamically or simply based on the offset than with the hard code of this number.
Is there a way with CSS or JavaScript / jQuery to move the container of autofill results by a certain amount?
A list of CSS classes involved in the Autocomplete field can be found in the Google documentation .
source
share