|
|
@ -171,10 +171,11 @@ public class IncTable { |
|
|
|
ArrayList cols = (ArrayList) rows.get(rowIndex); |
|
|
|
ArrayList cols = (ArrayList) rows.get(rowIndex); |
|
|
|
for (int colIndex = 0; colIndex < cols.size(); colIndex++) { |
|
|
|
for (int colIndex = 0; colIndex < cols.size(); colIndex++) { |
|
|
|
PdfPCell pCell = ((PdfPCell) cols.get(colIndex)); |
|
|
|
PdfPCell pCell = ((PdfPCell) cols.get(colIndex)); |
|
|
|
|
|
|
|
|
|
|
|
int cellCols = pCell.getColspan(); |
|
|
|
int cellCols = pCell.getColspan(); |
|
|
|
float avgWidth = pCell.getStyleWidth() / cellCols; |
|
|
|
float avgWidth = pCell.getStyleWidth() / cellCols; |
|
|
|
for (int i = 0; i < cellCols && colIndex + i < colCount; i++) { |
|
|
|
for (int i = 0; i < cellCols && colIndex + i < colCount; i++) { |
|
|
|
if (relativeColWidths.get(i) < avgWidth) { |
|
|
|
if (relativeColWidths.get(colIndex + i) < avgWidth) { |
|
|
|
relativeColWidths.set(colIndex + i, avgWidth); |
|
|
|
relativeColWidths.set(colIndex + i, avgWidth); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|