gmerabishvili / angular-ng-autocomplete

NPM package for Angular: https://www.npmjs.com/package/angular-ng-autocomplete
MIT License
156 stars 88 forks source link

Options opening according to free space #153

Open LukeSamkharadze opened 3 years ago

LukeSamkharadze commented 3 years ago

While opening autocomplete options, they always open down and sometimes creates scrollbar

image

image

It would be good to open options according to the space available, like this on the top

image

LukeSamkharadze commented 3 years ago

This also can be configurable option

gmerabishvili commented 3 years ago

@LukeSamkharadze Can you give me a further explanation what do you mean here exactly?

It would be good to open options according to the space available

gmerabishvili commented 3 years ago

You mean to open dropdown upward if it's not enough space downward, right?

LukeSamkharadze commented 3 years ago

Like we have on material autocomplete, if there is no space down, It opens up

gmerabishvili commented 3 years ago

Yes, clear.

Quethzel commented 2 years ago

@gmerabishvili I have the same issue as you describe. Are you found a way to fix it?