I ran into some inconsistency when it comes to setting table's height. According to the docs, height can be set via tabulator arguments:
tabulator(
data,
height = "fit-content"
)
However, that doesn't work—the height is set to the default value from tabulator_options (311px).
Instead, wrapping it in tabulator_options seems to help:
tabulator(
data,
tabulator_options(
height = "fit-content"
)
)
On that note, is there a particular reason why 311px is the default? From the testing I did, fit-content seems to behave better. The table inside a Shiny app isn't cropped when it's set to fit-content.
I ran into some inconsistency when it comes to setting table's height. According to the docs,
heightcan be set viatabulatorarguments:However, that doesn't work—the height is set to the default value from
tabulator_options(311px).Instead, wrapping it in
tabulator_optionsseems to help:On that note, is there a particular reason why
311pxis the default? From the testing I did,fit-contentseems to behave better. The table inside a Shiny app isn't cropped when it's set tofit-content.