Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skokenes opened this issue Sep 19, 2023 · 0 comments
Open

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

skokenes opened this issue Sep 19, 2023 · 0 comments

Comments

@skokenes
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant