Added cell size adjust to the KiCost worksheet.

This commit is contained in:
Salvador E. Tropea 2021-04-16 10:25:31 -03:00
parent 16ddb9465f
commit 1d44a6a551
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ def create_kicost_sheet(workbook, groups, cfg):
query_part_info(parts)
# Create a class to hold the spreadsheet parameters
ss = Spreadsheet(workbook, ws_names[ws])
if hasattr(ss, 'ADJUST_ROW_AND_COL_SIZE'):
ss.ADJUST_ROW_AND_COL_SIZE = True
ss.MAX_COL_WIDTH = cfg.xlsx.max_col_width
# Add a worksheet with costs to the spreadsheet
create_worksheet(ss, logger, parts, prj_info)