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

Auto-height #3

Open
pstanton opened this issue Jan 16, 2018 · 3 comments
Open

Auto-height #3

pstanton opened this issue Jan 16, 2018 · 3 comments

Comments

@pstanton
Copy link

How do I allow the table to set it's own height based on the rendered size?

@SimonHudec
Copy link

SimonHudec commented Aug 7, 2018

This library is very chaotic and not finished at all, i was trying to figure out this question for a longer time, one very weird and not properly working solution seems to be that you get the height of each column and sum it together for this to happen you need to edit table.js directly and pass onlayout property of column view to your main.js and there you just set that to state and pass it to table as height={this.state.value}

@SimonHudec
Copy link

If someone found better solution or even better lib for tables please tell me i would be very thankful!

@mufaddalhamidofficial
Copy link

mufaddalhamidofficial commented May 22, 2019

You can pass height='100%'
It worked for me.
<Table height='100%' columns={columns} dataSource={dataSource} />

Screenshot_1558545212
Sorry for commenting after 1 and the half year

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