rstudio / shinydashboard

Shiny Dashboarding framework
https://rstudio.github.io/shinydashboard/
Other
892 stars 300 forks source link

dashboardSidebar does not collapse when setting width with units other than px #236

Open samjakobcavazos opened 7 years ago

samjakobcavazos commented 7 years ago

The sidebar does not fully collapse when you set the width with units other than px.

In this example, the sidebar does not fully collapse:

library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(width='50%'
                   ),
  dashboardBody()
)

server <- function(input, output) { }

shinyApp(ui, server)

In this example, the sidebar does not collapse at all:

library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(width='50vw'
                   ),
  dashboardBody()
)

server <- function(input, output) { }

shinyApp(ui, server)