Merge pull request #7138 from wandji20/wb-SCI-10210

Default table to try and fit all columns to screen [SCI-10210]
This commit is contained in:
aignatov-bio 2024-02-27 14:09:24 +01:00 committed by GitHub
commit 5d3bbe7703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -336,7 +336,7 @@ export default {
}
} else {
this.initializing = false;
this.saveTableState();
this.gridApi.sizeColumnsToFit();
}
});
},
@ -549,8 +549,7 @@ export default {
},
resetColumnsToDefault() {
this.columnApi.resetColumnState();
this.columnApi.autoSizeAllColumns();
this.saveTableState();
this.gridApi.sizeColumnsToFit();
},
getOrder(columnsState) {
if (!columnsState) return null;