tabPanel bug in shiny 0.12.2?

27 views
Skip to first unread message

Jaroslaw Piskorski

unread,
Sep 2, 2015, 11:57:51 AM9/2/15
to Shiny - Web Framework for R
Hello!

In shiny 0.10.2.1

tabPanel("Numerical results", tableOutput(a_very_wide_table))

produced a nice tabpanel with a slider below, which allowed me to move the table to left and right and see parts of the "very_wide_table".
In shiny 0.12.2 the slider is gone and the table spills over to the right to whatever there is to the right (in my case to a column containing text). Am I missing something or is it a bug?

regards!
Jarek

Joe Cheng

unread,
Sep 2, 2015, 12:32:30 PM9/2/15
to Jaroslaw Piskorski, Shiny - Web Framework for R
We've changed versions of Bootstrap in Shiny version 0.11, so that's probably why you're seeing different behavior. You could do something like this I believe:

tags$style(type="text/css", "#foo { overflow-x: auto; max-width: 100%; }")

Just put that before your tableOutput, and replace the "foo" in "#foo" with the id of your tableOutput (you do need the # character).

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/560c792b-7e53-42f6-9c16-5f63e636f63e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jaroslaw Piskorski

unread,
Sep 2, 2015, 4:09:01 PM9/2/15
to Shiny - Web Framework for R, openg...@gmail.com
Works like a charm :)

Thanks a lot!

Jarek
Reply all
Reply to author
Forward
0 new messages