diff --git a/hwe/ts/components/GeneralList.vue b/hwe/ts/components/GeneralList.vue index 3d646989..656f90e6 100644 --- a/hwe/ts/components/GeneralList.vue +++ b/hwe/ts/components/GeneralList.vue @@ -152,7 +152,7 @@ watch(() => props.list, refineGeneralList); const gridApi = ref(); const columnApi = ref(); -const rowHeight = ref(28); +const rowHeight = ref(68); function getRowId(params: GetRowIdParams): string { const genID = (params.data as GeneralListItem).no; @@ -173,9 +173,10 @@ function onGridReady(params: GridReadyEvent) { function setRowHeight() { if (columnApi.value === undefined) { console.error("아직 준비 안됨?"); - return 28; + return; } + /* let height = gridApi.value?.getSizesForCurrentTheme().rowHeight ?? 28; if (columnApi.value.getColumn("icon")?.isVisible()) { @@ -184,7 +185,12 @@ function setRowHeight() { if (columnApi.value.getColumn("reservedCommand")?.isVisible()) { height = Math.max(height, 64 + 4); } - rowHeight.value = height; + + if(rowHeight.value != height){ + rowHeight.value = height; + gridApi.value?.redrawRows(); + } +*/ } function getRowHeight(): number { @@ -336,6 +342,7 @@ function toggleColumn(colID: headerType, col: Column) { } } columnApi.value?.setColumnsVisible(target, newState); + setRowHeight(); } const defaultCellClass = ["cell-middle"];