Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular ui-select box disable auto direction up

I have a box that is auto changing the direction based on screen size. The way it does this is adding a "direction-up" class to the directive. Anyway I can disable this behavior?

EDIT:

Answer below was great and concise, please do note you need angular-ui-select >= 0.13.0 for the answer below to work.

like image 643
Mike Avatar asked Feb 12 '26 06:02

Mike


1 Answers

You can force it to always open down by adding the position="down" attribute to the ui-select-choices element as follows:

<ui-select-choices position="down">
...
</ui-select-choices>
like image 110
gtlambert Avatar answered Feb 15 '26 20:02

gtlambert