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

Table always take the max height of container div #102

Open
andra961 opened this issue Feb 21, 2023 · 3 comments
Open

Table always take the max height of container div #102

andra961 opened this issue Feb 21, 2023 · 3 comments

Comments

@andra961
Copy link

Basically, even if the table has only 2 rows, all the container space will be occupied and the header + 2 rows will each be very big in height(1/3 of the container each). I'm using tree table, is there a way to prevent this or specify a fixed height for each row(and header too)?

@Levi2709
Copy link

Hello, I had the same problem. I solved it by using the custom theme. For the rows set table: grid-template-rows: 50px. And the header HeaderCell: height: 50px for example. Whether it's the perfect solution I don't know, but it works for me.

@andra961
Copy link
Author

Hello, I had the same problem. I solved it by using the custom theme. For the rows set table: grid-template-rows: 50px. And the header HeaderCell: height: 50px for example. Whether it's the perfect solution I don't know, but it works for me.

I tried it and it didn't work. Did you use --data-table-library_grid-template-rows: 50px; or just grid-template-rows: 50px?
Btw i solved it by adding height: auto; and max-height: 100% in Table, don't know if there's a better way too.

@proddy
Copy link
Contributor

proddy commented May 10, 2023

thanks @andra961 - just what I needed for my issue in #122

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

3 participants