Is there a way to limit the height of the selected items box and show a vertical scrollbar? #1692
Answered
by
danielinteractive
danielinteractive
asked this question in
Q&A
-
Apologies if this is a naive question, I am coming to selectize.js via R/Shiny so I am really a total newbie with all this. Basically the question is: can we have a vertical scrollbar in the selected items in selectize.js? Currently we have the situation that the more items we select, they are all showing up in the box, and therefore the box becomes larger and larger - taking more and more vertical space. Is there a css or js option we could use to set the maximum height of the selected items box and if that height is exceeded a vertical scrollbar is used? |
Beta Was this translation helpful? Give feedback.
Answered by
danielinteractive
Oct 28, 2021
Replies: 1 comment 2 replies
-
OK I found the answer: .selectize-input {
max-height: 102px;
overflow-y: auto;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
danielinteractive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK I found the answer: