rstudio / rstudio/bslib

Card sidebar opening causes delay in plot re-positioning

Open
#1,091 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
569
Forks
72
Avg merge
1d 2h
Merged PRs (30d)
5

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided R/Shiny/plotly reprex and observe the sidebar-open transition and plot repositioning. Confirm the delay against the larger plot if possible; done means opening the sidebar no longer leaves the plot repositioning delayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, r
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.