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

Is is possible to set width to maxContent? #388

Open
ElixirMike opened this issue Nov 11, 2022 · 1 comment
Open

Is is possible to set width to maxContent? #388

ElixirMike opened this issue Nov 11, 2022 · 1 comment

Comments

@ElixirMike
Copy link

When rendering the table, I'd like the table width to match whatever the max content of the table contents is.
is this possible? Currently it seems using Autosizer, I need to set an actual number to the width attribute, but ultimately, like a div, I'd like to set it to "maxContent" or an equivalent.

Appreciate if you let me know how I might do that.

@FrominXu
Copy link

FrominXu commented Mar 7, 2023

I did this with element-resize-detector and a div container.

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

2 participants