I have a couple items on a shiny dashboard (using flexdashboard, shinyjs, & shinyWidgets) that become obscured whenever I try to scale from a browser size to a tablet or phone screen size. This is only happening to items instantiated using the renderUI() function. The same objects display fine if they are simply declared and "unreactive". This is not unique to the following dropdown example, but also occurs when rendering HTML() output in a similar manner.
For example, the following shinyWidget dropdown button will scale perfectly fine if it is immediately declared. In other words, it appears on screen as the appropriate height.
dropdownButton(
p(strong("Append to API request")),
circle = FALSE,
status = "danger",
label = " Toggle",
icon = icon("transfer", lib = "glyphicon"),
width = "200px"
)
This, however, does not, and becomes obscured by a succeeding panel, with excessive padding underneath that is not present at browser size.
uiOutput('sample_dropdown')
output$sample_dropdown <- renderUI(dropdownButton(
circle = FALSE,
status = "danger",
label = " Resample",
icon = icon("record", lib = "glyphicon"),
width = "200px"
))