Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra white line in selectInput #2640

Open
bklingen opened this issue Sep 25, 2019 · 1 comment
Open

Extra white line in selectInput #2640

bklingen opened this issue Sep 25, 2019 · 1 comment
Labels
UI toolkit: selectInput Issues related to selectInput()

Comments

@bklingen
Copy link

When choices in selectInput go over two or more lines, an extra white line is added. If the choice is selected again, the white line goes away. (Tested in RStudio Viewer and on Chrome.)

library(shiny)
ui <- fluidPage(
  sidebarLayout(
    sidebarPanel(
      selectInput("a", "Extra line is added:", 
                  "A very long text where Shiny seems to add an extra line at the end. But once selected again, the extra white line goes away!")    
             ),
    mainPanel(
      h4("Click on the selection, select it again and the extra white line will go away")
    )
  )
)
server <- function(input, output) {}
shinyApp(ui = ui, server = server)

Screenshot at start-up:
image

Screenshot after selecting:
image

This is sometime a bit annoying when space is tight (i.e., multiple selectInputs). I would prefer no extra white space at start-up.

Thanks,
Bernhard

@cpsievert cpsievert added the UI toolkit: selectInput Issues related to selectInput() label Aug 18, 2020
@JT-39
Copy link

JT-39 commented Dec 11, 2024

Does anyone have a workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI toolkit: selectInput Issues related to selectInput()
Projects
None yet
Development

No branches or pull requests

3 participants