{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/shinydashboard/issues/292","repository_url":"https://api.github.com/repos/rstudio/shinydashboard","labels_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/292/comments","events_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/292/events","html_url":"https://github.com/rstudio/shinydashboard/issues/292","id":351569063,"node_id":"MDU6SXNzdWUzNTE1NjkwNjM=","number":292,"title":"DataTable width","user":{"login":"SemiQuant","id":8179171,"node_id":"MDQ6VXNlcjgxNzkxNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8179171?v=4","gravatar_id":"","url":"https://api.github.com/users/SemiQuant","html_url":"https://github.com/SemiQuant","followers_url":"https://api.github.com/users/SemiQuant/followers","following_url":"https://api.github.com/users/SemiQuant/following{/other_user}","gists_url":"https://api.github.com/users/SemiQuant/gists{/gist_id}","starred_url":"https://api.github.com/users/SemiQuant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemiQuant/subscriptions","organizations_url":"https://api.github.com/users/SemiQuant/orgs","repos_url":"https://api.github.com/users/SemiQuant/repos","events_url":"https://api.github.com/users/SemiQuant/events{/privacy}","received_events_url":"https://api.github.com/users/SemiQuant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T12:07:32Z","updated_at":"2018-08-17T14:31:10Z","closed_at":null,"author_association":"NONE","body":"Hi, it seems that to render data tables in the dashboardBody don't automatically resize and overflow the page without allowing for scrolling. I've tried options all the options I could think of or find online. Example below (if you zoom out on your browser you'll see its printing the whole table)\r\n\r\n\r\n```\r\nrequire(shiny)\r\nrequire(shinydashboard)\r\nrequire(DT)\r\n\r\nshinyApp(\r\n  ui = dashboardPage(\r\n    dashboardHeader(),\r\n    dashboardSidebar(),\r\n    dashboardBody(DT::dataTableOutput('dt'),\r\n                  # This one renders and resizes correctly\r\n                  DT::dataTableOutput('dtsmall'),\r\n                  DTOutput('dt2'))\r\n  ),\r\n\r\n  server = function(input, output, session) {\r\n    output$dt <- DT::renderDataTable(cbind(cbind(head(mtcars), head(mtcars)),cbind(head(mtcars), head(mtcars))))\r\n    output$dt2 <- DT::renderDT(cbind(cbind(head(mtcars), head(mtcars)),cbind(head(mtcars), head(mtcars))))\r\n    output$dtsmall <- DT::renderDataTable(head(mtcars))\r\n  }\r\n)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/shinydashboard/issues/comments/413884553","html_url":"https://github.com/rstudio/shinydashboard/issues/292#issuecomment-413884553","issue_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/292","id":413884553,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzg4NDU1Mw==","user":{"login":"wch","id":86978,"node_id":"MDQ6VXNlcjg2OTc4","avatar_url":"https://avatars3.githubusercontent.com/u/86978?v=4","gravatar_id":"","url":"https://api.github.com/users/wch","html_url":"https://github.com/wch","followers_url":"https://api.github.com/users/wch/followers","following_url":"https://api.github.com/users/wch/following{/other_user}","gists_url":"https://api.github.com/users/wch/gists{/gist_id}","starred_url":"https://api.github.com/users/wch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wch/subscriptions","organizations_url":"https://api.github.com/users/wch/orgs","repos_url":"https://api.github.com/users/wch/repos","events_url":"https://api.github.com/users/wch/events{/privacy}","received_events_url":"https://api.github.com/users/wch/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T14:31:10Z","updated_at":"2018-08-17T14:31:10Z","author_association":"CONTRIBUTOR","body":"I think you need to put it in a `box()`."}}
{"actor":{"display_login":"wch"}}