-
Notifications
You must be signed in to change notification settings - Fork 354
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
Add percentage based column widths #573
Comments
I would like to see this as being able to set widths as percentages OR by px. Some of my columns, I don't want to change size while the others I want as percentages. For example, I have my last column that contains an icon(s) and I always want that one to be 70px. While the others I may want 25%, 30%, etc. |
To be clear, I'm assuming you want the percentage behavior to work with whatever is remaining after the fixed columns are put in place. So for instance, if you had columns that were This is tricky, because now we're no longer mirroring the behavior of CSS, and creating our own DSL for widths, and it's strictly less flexible. For instance, what if someone wants all columns to be 1/4th the container width, but has more than 4 columns? With straight percentage based columns this case makes sense still, with the model above it does not. We could also attempt to mirror CSS calc's behavior (e.g. I would err on keeping things simpler so we can expand the behavior later, and possibly solve it in other ways. For instance, percentage widths like above combined with |
I got this to work without changes with:
Thanks for chatting about it in Slack! |
It should be possible to specify column widths as percentages of the container
The text was updated successfully, but these errors were encountered: