{"action":"created","issue":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/21","labels_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/21/comments","events_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/21/events","html_url":"https://github.com/jrowen/rhandsontable/issues/21","id":94558587,"number":21,"title":"issues with shinydashboard","user":{"login":"smartinsightsfromdata","id":3786727,"avatar_url":"https://avatars.githubusercontent.com/u/3786727?v=3","gravatar_id":"","url":"https://api.github.com/users/smartinsightsfromdata","html_url":"https://github.com/smartinsightsfromdata","followers_url":"https://api.github.com/users/smartinsightsfromdata/followers","following_url":"https://api.github.com/users/smartinsightsfromdata/following{/other_user}","gists_url":"https://api.github.com/users/smartinsightsfromdata/gists{/gist_id}","starred_url":"https://api.github.com/users/smartinsightsfromdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartinsightsfromdata/subscriptions","organizations_url":"https://api.github.com/users/smartinsightsfromdata/orgs","repos_url":"https://api.github.com/users/smartinsightsfromdata/repos","events_url":"https://api.github.com/users/smartinsightsfromdata/events{/privacy}","received_events_url":"https://api.github.com/users/smartinsightsfromdata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-12T11:49:18Z","updated_at":"2015-07-13T17:23:51Z","closed_at":null,"body":"Some issues with shinydashboard (I confess I haven't tried to reproduce them in \"plain\" shiny)\r\n\r\nI'm sure some of them are due to improper parameter settings from my part?\r\n\r\n* The handsontable is not horizontally self-sizing: it hasn't the ability of setting the size of the box (apparently).  Of course it works if I fix an appropriate width (e.g. width=12).\r\n* The horizontal scroll does not include the handsontable head row.  This is pretty pretty confusing as the you loose track of which column header is the right one.\r\n* As expected (due to the settings) there are no row headers, strangley not even row numbers.  But after trying to ender a char in mpg (defined as numeric) row numbers appear from nowhere as row headers.  This would be better if they would be there form the beginning, or not at all.\r\n* No autosizing also vertically.  It is an issue as the unused  space left at the bottom is huge!\r\n\r\n```R\r\nlibrary(shiny)\r\nlibrary(shinydashboard)\r\nlibrary(rhandsontable)\r\n\r\n\r\nheader <- dashboardHeader()\r\n\r\nsidebar <- dashboardSidebar()\r\n\r\nbody <- dashboardBody(\r\n\r\n          fluidRow(\r\n            box(plotOutput(\"plot1\")),\r\n            box( title = \"Controls\", width=3,sliderInput(\"slider\", \"Number of observations:\", 1, 10, 5) )),\r\n          fluidRow( box(title = \"Handsontable\",rHandsontableOutput(\"hot\") )\r\n          \r\n))\r\n\r\nui <- dashboardPage(header, sidebar, body)\r\n\r\n\r\nserver <- function(input, output) {\r\n\r\n  set.seed(122)\r\n  histdata <- rnorm(500)\r\n\r\n  values  <-  reactiveValues()\r\n  setHot  <-  function(x) values[[\"hot\"]]  <-  x\r\n\r\n  \r\n  output$plot1 <- renderPlot({\r\n    data <- histdata[seq_len(input$slider)]\r\n    hist(data)\r\n  })\r\n  \r\n  \r\n  output$hot = renderRHandsontable({\r\n  if (!is.null(input$hot)) {\r\n    DF  <-  hot_to_r(input$hot)\r\n    setHot(DF)\r\n    rhandsontable(DF) %>%\r\n      hot_table(highlightCol = TRUE, highlightRow = TRUE)\r\n  } else {\r\n    DF  <-  mtcars\r\n    cols <- colnames(DF)\r\n    DF$brand <- row.names(mtcars)\r\n    DF <- DF[,c(\"brand\", cols)]\r\n    rhandsontable(DF, rowHeaders=FALSE) %>%\r\n      hot_table(highlightCol = TRUE, highlightRow = TRUE) %>%\r\n      hot_cols(columnSorting = TRUE, fixedColumnsLeft=1) %>%\r\n      hot_validate_numeric(col = \"mpg\", allowInvalid=FALSE)\r\n  }\r\n  })\r\n}\r\n\r\nshinyApp(ui, server)\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jrowen/rhandsontable/issues/comments/120998598","html_url":"https://github.com/jrowen/rhandsontable/issues/21#issuecomment-120998598","issue_url":"https://api.github.com/repos/jrowen/rhandsontable/issues/21","id":120998598,"user":{"login":"jrowen","id":1530030,"avatar_url":"https://avatars.githubusercontent.com/u/1530030?v=3","gravatar_id":"","url":"https://api.github.com/users/jrowen","html_url":"https://github.com/jrowen","followers_url":"https://api.github.com/users/jrowen/followers","following_url":"https://api.github.com/users/jrowen/following{/other_user}","gists_url":"https://api.github.com/users/jrowen/gists{/gist_id}","starred_url":"https://api.github.com/users/jrowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrowen/subscriptions","organizations_url":"https://api.github.com/users/jrowen/orgs","repos_url":"https://api.github.com/users/jrowen/repos","events_url":"https://api.github.com/users/jrowen/events{/privacy}","received_events_url":"https://api.github.com/users/jrowen/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T17:23:51Z","updated_at":"2015-07-13T17:23:51Z","body":"If I take a look at the page source, I can see that the table width and height are being specified as large values in your example.  A cursory check, and I don't see the same when run standalone or via `shiny`.  We might need some special handling for `shinydashboard`; maybe @wch has some ideas."}}