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

when use conditionalPanel , jqui_resizable will auto set plotout width 100% #90

Open
Liripo opened this issue Mar 15, 2023 · 0 comments
Labels

Comments

@Liripo
Copy link

Liripo commented Mar 15, 2023

library(shiny)
library(shinyjqui)
library(ggplot2)

ui <- fluidPage(
  selectInput("select",label = "Panel",choices = c("a","b"),selected = "a"),
  conditionalPanel(
    condition = "input.select == 'a'",
    jqui_resizable(plotOutput("plot1",width = "50%"))
  ),
  conditionalPanel(
    condition = "input.select == 'b'",
    jqui_resizable(plotOutput("plot2",width = "50%"))
  )
)

server <- function(input,output) {
  output$plot1 <- renderPlot({ggplot()})
  output$plot2 <- renderPlot({ggplot()})
}

shinyApp(ui,server)

Above is a reproducible example, in the second image the width is automatically 100%.like this:

image

image

@Yang-Tang Yang-Tang added the bug label Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants