-
Notifications
You must be signed in to change notification settings - Fork 356
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
recalculate column widths on column addition/subtraction #604
Comments
Impressive looking app! So, there are a few things at play here. We have some interesting constraints with Ember Table because of the occlusion:
It looks like you're using My recommendation is to use We could also consider clearing the cache of widths whenever the columns array changes, but I think in most cases that's the opposite of what users would expect, so I'm hesitant to make that change. Definitely open to discussing it though. |
Thanks, @pzuraq! Appreciate the detailed reply! I actually am using Thx! |
Ah, good to know! Then for some reason, the fill mode isn't being respected. The last column should never be growing, and it is somehow. We need to figure that, I'll see if I can get a reproduction going and we can work it out |
I'm running into this when dynamically adding/removing columns and then dragging to reorder the columns. The drag indicators are no longer aligned with the columns. Calling I think it would be great to have an option to clear the width cache when columns are updated. Or, accept a callback for when columns are updated and pass it a function that can be used to recalculate the width. What do you think? |
Hi there!
Had a quick question:
I have a basic table that depending on a parameter I send in, adds a column to the table. If I bounce back and forth between the table with and without the column, it appears that the column widths aren't always recalculated leaving me with column widths that aren't correct. I'm probably not doing a great job of conveying this, so here's a video to show you what I'm talking about: https://cl.ly/3E1H1P2t0722
For now, I'm just going to create a separate table with specific columns but wanted to see if you had any ideas.
Thanks again for all of your hard work on this addon. It's awesome!
Cheers.
The text was updated successfully, but these errors were encountered: