Card sidebar opening causes delay in plot re-positioning
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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