mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 17:00:41 +08:00
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:
commit
5d3bbe7703
1 changed files with 2 additions and 3 deletions
|
|
@ -336,7 +336,7 @@ export default {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.initializing = false;
|
this.initializing = false;
|
||||||
this.saveTableState();
|
this.gridApi.sizeColumnsToFit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -549,8 +549,7 @@ export default {
|
||||||
},
|
},
|
||||||
resetColumnsToDefault() {
|
resetColumnsToDefault() {
|
||||||
this.columnApi.resetColumnState();
|
this.columnApi.resetColumnState();
|
||||||
this.columnApi.autoSizeAllColumns();
|
this.gridApi.sizeColumnsToFit();
|
||||||
this.saveTableState();
|
|
||||||
},
|
},
|
||||||
getOrder(columnsState) {
|
getOrder(columnsState) {
|
||||||
if (!columnsState) return null;
|
if (!columnsState) return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue