From 19e76e73462c757c1af73afd5d027c26d8f8d81b Mon Sep 17 00:00:00 2001 From: Simon Bengtsson Date: Sat, 29 Aug 2020 21:07:40 +0200 Subject: [PATCH] Add support for colSpan and minCellWidth --- src/widthCalculator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widthCalculator.ts b/src/widthCalculator.ts index 7b74fc73..f5e83d55 100644 --- a/src/widthCalculator.ts +++ b/src/widthCalculator.ts @@ -123,7 +123,7 @@ function calculate(doc: DocHandler, table: Table) { table.styles.columnStyles[column.dataKey] || table.styles.columnStyles[column.index] || {} - const cellWidth = columnStyles.cellWidth + const cellWidth = columnStyles.cellWidth || columnStyles.minCellWidth if (cellWidth && typeof cellWidth === 'number') { column.minWidth = cellWidth column.wrappedWidth = cellWidth