Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCollapsed row height with no pagination #69
Comments
|
FWIW this appears to be related to "height=500" setting in that demo. |
|
Hi, thanks for the report. This is now fixed in the development version (d53a2ba). The issue was that before, the table rows would stretch to fill the vertical space if there was more space than necessary. This was awkward if the table had a fixed height, but not enough rows to fill out that height: reactable(
MASS::Cars93[1:4, 1:4],
defaultColDef = colDef(footer = "footer"),
height = 300,
outlined = TRUE
)Now, the table rows won't stretch, which looks less awkward in most cases: I think the row stretching was originally intended behavior, so here's a way to restore that if necessary. Use a theme like reactable(
MASS::Cars93[1:4, 1:4],
defaultColDef = colDef(footer = "footer"),
height = 300,
outlined = TRUE,
theme = reactableTheme(tableBodyStyle = list(flex = "auto"))
) |


In the Shiny demo (as well as in my code), when Pagination is disabled, and Grouping by Species is enabled, the collapsed rows have very large height. Is there any workaround for this?