Skip to content

Setting height on tabulator has no effect #61

@TymekDev

Description

@TymekDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions