Skip to content

Commit

Permalink
🐛 Handle column auto fit on data model change
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Hensby <[email protected]>
  • Loading branch information
ollyhensby committed Oct 3, 2023
1 parent c7cf3a4 commit 3908abb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ export class DataGridView extends DOMWidgetView {

this.model.on('data-model-changed', () => {
this.grid.dataModel = this.model.data_model;
this.handleColumnAutoFit();
});

this.model.on('change:base_row_size', () => {
Expand Down

0 comments on commit 3908abb

Please sign in to comment.