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

[Feature request] Allow DataTable to take its natural height #8595

Closed
bmerry opened this issue Jan 30, 2019 · 2 comments · Fixed by #10353
Closed

[Feature request] Allow DataTable to take its natural height #8595

bmerry opened this issue Jan 30, 2019 · 2 comments · Fixed by #10353

Comments

@bmerry
Copy link

bmerry commented Jan 30, 2019

This probably applies to other widgets as well, but it's particularly annoying for DataTables. I have a Column with a DataTable followed by other elements. I would like the DataTable to behave like normal HTML layout i.e. take as much vertical space as needed to show all the rows, with the following elements appearing immediately below the last row. Even if I know in advance how many rows there will be, there is no portable way to turn that into a height in pixels.

@mitchm17
Copy link

mitchm17 commented Feb 6, 2019

Simple short-term fix would be to set the height=30*len(data in columns)
You can use this for now until it gets added in. Good luck!

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants