Index: arms/js/analysisCost.js =================================================================== diff -u -r6dc6aa7a94afbb8a8ed2a29fb2e93d2ba300bcf4 -rcb6f17d2285a784bd1b44e477ea0eb54afdf6dfc --- arms/js/analysisCost.js (.../analysisCost.js) (revision 6dc6aa7a94afbb8a8ed2a29fb2e93d2ba300bcf4) +++ arms/js/analysisCost.js (.../analysisCost.js) (revision cb6f17d2285a784bd1b44e477ea0eb54afdf6dfc) @@ -1518,10 +1518,12 @@ toolbar:[], pagination:10, allowInsertColumn: false, + contextMenu: [], updateTable: function(instace, cell, col, row, val, id) { cell.style.whiteSpace = "normal"; if(col === 2) { cell.style.textAlign = "right"; + cell.style.color = "#a4c6ff"; } else { cell.style.textAlign = "left"; } @@ -1585,6 +1587,27 @@ })); }; + var resizeObserver = new ResizeObserver(function(entries) { + for (let entry of entries) { + var width = entry.contentRect.width; + var height = entry.contentRect.height; + handleResize(entry.target.id, width, height); + } + }); + + // 모달요소 크기 변화 관찰 + resizeObserver.observe(document.getElementById('spreadsheet')); + + function handleResize(id,width, height) { + if (id ==="spreadsheet" && height !== 0) { + if (인력별_연봉정보) { + drawExcel("spreadsheet", 인력별_연봉정보); + } else { + console.log("엑셀 데이터를 그릴 영역의 넓이가 너무 작습니다."); + } + } + } + return { setExcelData, getExcelData, setColumns, getColumns, Index: arms/js/common/jspreadsheet/spreadsheet.js =================================================================== diff -u -r7465b25853331ffdad27015809ad70c055f0ce80 -rcb6f17d2285a784bd1b44e477ea0eb54afdf6dfc --- arms/js/common/jspreadsheet/spreadsheet.js (.../spreadsheet.js) (revision 7465b25853331ffdad27015809ad70c055f0ce80) +++ arms/js/common/jspreadsheet/spreadsheet.js (.../spreadsheet.js) (revision cb6f17d2285a784bd1b44e477ea0eb54afdf6dfc) @@ -119,16 +119,16 @@ var items = []; // Save - // items.push({ - // title: jSuites.translate("Save as"), - // shortcut: "Ctrl + S", - // icon: "save", - // onclick: function () { - // o.download(); - // } - // }); + items.push({ + title: jSuites.translate("Save as"), + shortcut: "Ctrl + S", + icon: "save", + onclick: function () { + o.download(); + } + }); - return items; + return []; }, search: true, pagination: 30,