-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Table] prop Table.columnWidths breaks column resizing #3833
Comments
Did anyone find a work arround for this issue? |
Hi @anurag060 |
I've also experienced this issue. I attempted to work around it by keeping up with the column widths in a state variable and using the Glad to know there is a workaround to pin at 3.8.0 for now. |
I also have this issue. Any plan of fixing it? |
Was this issue ever fixed? |
I am seeing this in 3.8.17 |
I am seeing the same issue on 3.8.17. Any update about an ETA for the fix? |
I am using 3.8.26. I use |
Please give an example because this doesn't really make sense as it isn't the correct function to use for this. |
^ above PR broke it 3.80 works, 3.8.1 table PR broke it. Seems to be this file: https://github.com/palantir/blueprint/pull/3771/files table.tsx change. I'm gonna attempt to fix it now cause this bug is critical and we need to update. |
Here is the issue: https://github.com/palantir/blueprint/pull/3771/files let { columnWidths, rowHeights } = props;
if (columnWidths == null) {
columnWidths = state.columnWidths;
}
if (rowHeights == null) {
rowHeights = state.rowHeights;
} It is never setting the columnWidths if they are supplied by props due to it being in 'controlled' mode. const [columnWidths, setColumnWidths] = useState([200, 200, 150, 150]); <Table
columnWidths={columnWidths}
onColumnWidthChanged={(index, width) => {
const newColumnWidths = [...columnWidths];
newColumnWidths[index] = width;
setColumnWidths(newColumnWidths);
}}
/> Although there's still a major issue that the cells go white blank if you update the columnWidths and such. |
this should be fixed in table v4.0.0-rc.1. if it's not, let me know and I'll re-open. |
Hello.
Looks like setting initial column width with
Table.columnWidths
breaks column resizing starting from @blueprintjs/[email protected].Version 3.8.0 - seams working.
Environment
Link to a minimal repro: https://codesandbox.io/s/blueprint-sandbox-l4l11
Steps to reproduce
Table.columnWidths
and resizable columns.Actual behavior
The layout looks broken like this
Possible solution
Don't have solution, I rolled back to package previous version.
The text was updated successfully, but these errors were encountered: