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

When awesomeCheckbox is checked it adds empty space below bottom of page #628

Open
mcsimenc opened this issue Sep 1, 2023 · 1 comment

Comments

@mcsimenc
Copy link

mcsimenc commented Sep 1, 2023

If an awesomeCheckbox is at the bottom of the page it adds extra space at the bottom of the page when triggered. For example:

library(shiny)
library(bslib)
library(shinyWidgets)

ui = page_fillable(
  
  layout_sidebar(
    sidebar(
      div(style = "height: 800px;"),
      awesomeCheckbox(
        "awesomeCheckbox",
        label = NULL
      )
    )
  )
)

shinyApp(ui, server = function(input,output) { } )

Setting its position attribute to relative mitigates this behavior:

library(shiny)
library(bslib)
library(shinyWidgets)

ui = page_fillable(

  tags$style(".awesome-checkbox { position: relative; }"),

  layout_sidebar(
    sidebar(
      div(style = "height: 800px;"),
      awesomeCheckbox(
        "awesomeCheckbox",
        label = NULL
      )
    )
  )
)

shinyApp(ui, server = function(input,output) { } )
@pvictor
Copy link
Member

pvictor commented Sep 6, 2023

Hello,

Your example produce something weird for me (bslib v0.5.1), with something simpler I do not see any problem:

library(shiny)
library(bslib)
library(shinyWidgets)

ui = page_fluid(
  div(style = "height: 800px;"),
  awesomeCheckbox(
    "awesomeCheckbox",
    label = NULL
  )
)

shinyApp(ui, server = function(input,output) { } )

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