Hi there! I’ve been experiencing some issues with DataTable formatting when using fixed columns.
Specifically, I have noticed an issue with the Plotly table component where the column width overlaps other non-fixed column after a callback update (new data).
dash_table.DataTable(
.
.
.
fixed_columns={'headers': True, 'data': 1},
style_table={'minWidth': '100%', 'overflowX': 'scroll', 'height': '150px',
'overflowY': 'scroll'},
style_cell={'width': '50px'},
style_cell_conditional={'if': {'column_id': Date},
'width': '100px',
'minWidth': '100px',
'maxWidth': '100px',
},
},
Basically it goes from this (expected behavior)…
…to this after a callback:
This issue only occurs when fixed_columns is used. If I remove fixed_column property, the bug also disappears!
Additionally, I have tried many different solutions to fix this issue, such as setting the column width with relative or absolute numbers, both in the callback and initially, but none of them resolved the problem.
Cheers