I've recently started a module that runs an autocomplete via the taxonomy. It's attached to a form textarea element:
$form['bb_occupation'] = array(
...
'#autocomplete_path' => 'taxonomy/autocomplete/field_occupations_list',
);
My issue is as follows, The options returned from the auto complete display correctly for admin/logged in users:
While, if a non-admin/non logged in user visits said site, they're greeted with this:
Where the options appear well off screen. I did a little research on Drupal & Google and came up with these:
Autocomplete fields appear in wrong place for non-admins in...
Which lead to an answer that did the following sort of deal (taken from here):
$($input).parent().addClass('autocomplete-wrapper');
in the autocomplete.js
and this:
.autocomplete-wrapper {
position: relative;
}
to the system.base.css
files. That didn't work for me, and I've been playing with positioning for practically the whole day now, do you guys have any suggestions as to how I can amend/fix this?
It is not related to anything like this:
(custom )Autocomplete won't work when the user is not logged
as it isn't a custom function doing the autocomplete, it's through the taxonomy. It can't be a permissions error either because the menu with suggestions shows up, just not where it's supposed to.