oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

Dropup menu #350

Closed tlorenzetti closed 7 years ago

tlorenzetti commented 7 years ago

I would like to use the completer at the bottom of the page. Anyway, since the dropdown menu opens under the input field it is not completely visible. Is there a way to open the menu upward instead? Something like the dropup class in bootstrap dropdowns

oferh commented 7 years ago

Hi, not at the moment since movement and highlight only support dropdown

tlorenzetti commented 7 years ago

For those who are eventually interested, I implemented a workaround applying some styles. Maybe it's not the best solution, but it works for my purpose.

ng2-completer {
    position: relative;
}
.completer-dropdown {
    bottom: 20px;
}

In this way the dropdown menu opens above the input field (offset of 20px in my case) and it eventually grows upward.