RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
454 stars 77 forks source link

If we set rightSidebar custom width, body has been changet to the default 230px #124

Closed sheynkler closed 3 years ago

sheynkler commented 3 years ago

I set rightSidebars width to 300px. If I close and open rightSidebar, body width (section content) has been changed to the default 230px. I also need to switch the body width to 300px.

    if (interactive()) {
  library(shiny)
  library(shinydashboard)
  library(shinydashboardPlus)

  shinyApp(
    ui = dashboardPagePlus(
      header = dashboardHeaderPlus(
        enable_rightsidebar = TRUE,
        rightSidebarIcon = "gears"
      ),
      sidebar = dashboardSidebar(),
      body = dashboardBody(
        "Lorem ipsum..."
      ),
      rightsidebar = rightSidebar(
        width = 300
      ),
      title = "DashboardPage"
    ),
    server = function(input, output) { }
  )
}

i1 i2

DivadNojnarg commented 3 years ago

Hi,

The problem has been fixed in v2.0.0 on CRAN.