sukima / ember-cli-select-picker

An enhanced Boostrap styled select component addon for Ember CLI
https://sukima.github.io/ember-cli-select-picker
MIT License
23 stars 15 forks source link

long lists and data-size #59

Closed haldiggs closed 7 years ago

haldiggs commented 8 years ago

the bootstrap version allows the data-size attribute to limit the list size... it makes it scroll.

http://silviomoreto.github.io/bootstrap-select/examples/#menu-size

is there a way to make this work with this component?

sukima commented 8 years ago

Maybe. Off the top of my head as the component performs a resize tap into the event . Calculate the height of the largest list item and set the height of the div to that times the number of items and set the div overflow to scroll.

That said it seems like a lot of work. How does bootstrap-ember handle it?

There is also better alternatives out there like ember-power-select and the ember-bootstrap which has a dropdown component that could be used.