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

bs4TabCard does not scale height automatically #14

Closed
stephLH opened this issue Sep 26, 2018 · 2 comments
Closed

bs4TabCard does not scale height automatically #14

stephLH opened this issue Sep 26, 2018 · 2 comments

Comments

@stephLH
Copy link

stephLH commented Sep 26, 2018

If a bs4TabCard contains a bs4Box, it does not scale height automatically if bs4Box height exceeds 464px :

library(shiny)
library(bs4Dash)

shinyApp(
  ui = bs4DashPage(
    navbar = bs4DashNavbar(),
    sidebar = bs4DashSidebar(
      bs4SidebarMenuItem(
        "Tabs",
        tabName = "tabs"
      )
    ),
    body = bs4DashBody(
      bs4TabItems(
        bs4TabItem(
          tabName = "tabs",
          bs4TabCard(
            bs4TabPanel(
              tabName = "test",
              active = TRUE,
              fluidRow(
                bs4Box(
                  height = "465px",
                  title = "Box 1",
                  "texte 1"
                )
              )
            )
          )
        )
      )
    )
  ),
  server = function(input, output) {}
)
@DivadNojnarg
Copy link
Member

Hi Steph,
this is not a classic usage I would say. Anyway, I removed the max-height attribute of bs4TabCard. Normally it should scale now. Close if it's working

@stephLH
Copy link
Author

stephLH commented Sep 27, 2018

Thanks, it's working.
I reported this issue in case of a large graph, for example.
In shinydashboard, I also did not have this limitation.

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