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 · 1 comment · Fixed by #10353
Closed

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

bmerry opened this issue Jan 30, 2019 · 1 comment · 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!

@mattpap mattpap added this to Triage in Focus: Layout Apr 4, 2019
@bryevdv bryevdv modified the milestones: short-term, 2.2 Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants