Pixabay / JavaScript-autoComplete

An extremely lightweight and powerful vanilla JavaScript completion suggester.
752 stars 186 forks source link

Width of the suggestion list #67

Open kiru opened 6 years ago

kiru commented 6 years ago

Is it possible to change the width of the suggestion list?

See here: https://codepen.io/anon/pen/vdMdxB

If you start to type "Aus" then I want to see the full value:

image

I see that the width is same as the input text field width: https://github.com/Pixabay/JavaScript-autoComplete/blob/master/auto-complete.js#L68

Is there any specific reason for that? ( how can I overwrite that? )

MakoSipper commented 5 years ago

It's been a while, but I had this issue as well and the workaround was adding this to my css:

.autocomplete-suggestion { width: unset; }

I couldn't figure out where it was inheriting something else from, though. Anyway, maybe it can help someone in the future.