valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 587 forks source link

How to deal with overflow-y #938

Open jdang67 opened 6 years ago

jdang67 commented 6 years ago

The drop down works OK if the list is very short and the body enough space to show the drop-down. Otherwise, most of data items is hidden from user. Can we change from div to select object.

optimistex commented 6 years ago

Hi. I continue developing the component in this fork: https://github.com/optimistex/ng2-select-ex Please describe your expectations from the dropdown when the body hasn't enough free space by vertical. And maybe I will can to implement it.

jdang67 commented 6 years ago

Currently, ng2-select generates one Html tag for each

optimistex commented 6 years ago

Are you mean something like this? image


Instead of this? image

jdang67 commented 6 years ago

Yes, making sure opening the drop down won't change the vertical spacing between the drop down and component below it.

optimistex commented 6 years ago

It's done. There is more details: https://github.com/optimistex/ng2-select-ex