Skip to content

How to have different header row height than body row height?Β #194

@skokenes

Description

@skokenes

Support Question

Hi, in the editable data grid example on Perspective's website, the column header row has a height of 36px while the table rows have a height of 23px:
CleanShot 2023-09-19 at 14 38 50@2x

Despite this difference, the virtualization works properly and you can scroll to all rows within the window.

I have tried to accomplish something similar using regular-table, but any time my header row is bigger than my table rows, the table does not render properly. It ends up rendering less rows than fill the available scrolling space.

I have tried looking at the underlying perspective data grid code to figure out how its accomplishing this different header size, but I can't seem to find the solution.

Any guidance on how to render a column header height that is different from the table body row height, without breaking the row virtualization? See this video of the broken behavior:

CleanShot.2023-09-19.at.14.42.16.mp4

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