Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Discussion options

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?

Example:
image

You must be logged in to vote

OK I found the answer:

.selectize-input {
  max-height: 102px;
  overflow-y: auto;
}

Replies: 1 comment · 2 replies

Comment options

OK I found the answer:

.selectize-input {
  max-height: 102px;
  overflow-y: auto;
}
You must be logged in to vote
2 replies
@duju211
Comment options

Hi! How does this look in your shiny app? It would be ineteresting for me to see, how one can set the option in shiny! Thx for your help!

@danielinteractive
Comment options

Hi @duju211 , please have a look at https://github.com/insightsengineering/teal.modules.hermes/blob/main/inst/css/custom.css where this is used.

Answer selected by danielinteractive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1691 on October 28, 2021 10:38.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.