Skip to content

Scroller Extension: max-height of .dataTables_scrollBody is 200px #1168

Description

@Justype
<div class="dataTables_scrollBody" style="position: relative; overflow: auto; width: 100%; max-height: 200px; height: 200px;">
    ...
</div>

Image

Is this done on purpose?

I want to use scroller in quarto dashboard. But it is very small. But I don't have a better solution to fix this.

My current patch for this: use vh instead of px

<style>
.dataTables_scrollBody {
  max-height: 60vh !important; /* depends on your layout */
  height: 60vh !important;
}
</style>

Any better option? If not, this issue can be closed.

Activity

  1. willgearty commented on Jun 9, 2025

    @willgearty

    You can use the scrollY option to change the height (it accepts any CSS height value).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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