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

Card sidebar opening causes 2nd jitter/re-alignment to plotly #1091

Open
asadow opened this issue Jul 19, 2024 · 2 comments
Open

Card sidebar opening causes 2nd jitter/re-alignment to plotly #1091

asadow opened this issue Jul 19, 2024 · 2 comments

Comments

@asadow
Copy link
Contributor

asadow commented Jul 19, 2024

I'm making heavy use of the sidebar open/close feature and I've noticed there is a 2'nd jitter from a sidebar opening. This effect is more pronounced for my actual plot (not the reprex below), but I'm having trouble reprex'ing that.

library(bslib)
library(shiny)
library(plotly)

# -------------------------------------------------------------------------
fig <- plot_ly(z = ~volcano)
fig <- fig %>% add_surface() 

ui <- page_fluid(
  card(
    layout_sidebar(
      sidebar = sidebar(),
      plotlyOutput("plot")
    )
  )
)

# Server logic
server <- function(input, output, session) {
  output$plot <- renderPlotly({
    fig
  })
}

shinyApp(ui, server)
@gadenbuie
Copy link
Member

Could you include a video from your original example? I'm having hard time finding the effect you're describing in the reprex.

@asadow
Copy link
Contributor Author

asadow commented Aug 13, 2024

sidebar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants