-
Notifications
You must be signed in to change notification settings - Fork 63
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
TreeGrid on v23 autowidth broken #3607
Comments
Need to check if this could be a regression from vaadin/web-components#3525 |
Seems like it. Turns out having A workaround for this issue is to apply the following styles to
|
Have we considered |
In tree-toggle's case, host defines the flexbox layout. If
After more investigation, turns out that using Using a negative margin does reduce the intrinsic width of the component and thus reduces the resulting width of an auto-width tree-column. Before applying I suggest fixing the issue by using |
awesome! In which version it will be rolled out? |
The fix should be included in the next patch releases of 23.1 and 23.2, also 23.3.0-(next alpha) |
Description of the bug
After upgradeing to vaadin 24 from 14 and createing a Treegrid like
the column is not resized automatically, even when i call treeGrid.recalculateColumnWidths() when new Objects are added or the grid is set with items. I must to setWidth("400px") to show the content
EDIT: when i call in the dataprovide treeGrid.recalculateColumnWidths(); it works. But directly after creating the treegrid nothing happens, the columns are not resized. Only when i expand a node, the column get resized
Expected behavior
The Column should be set autowidth like in vaadin 14
Minimal reproducible example
Versions
The text was updated successfully, but these errors were encountered: