We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7ce2f commit 751ace5Copy full SHA for 751ace5
layout/src/main/java/com/itextpdf/layout/renderer/TableWidths.java
@@ -284,7 +284,7 @@ float[] autoLayout() {
284
float tableWidthBasedOnPercents = sumOfPercents < 100
285
? totalNonPercent * 100 / (100 - sumOfPercents) : 0;
286
for (int i = 0; i < numberOfColumns; i++) {
287
- if (widths[i].isPercent) {
+ if (widths[i].isPercent && widths[i].width > 0) {
288
tableWidthBasedOnPercents = Math.max(widths[i].max * 100 / widths[i].width, tableWidthBasedOnPercents);
289
}
290
0 commit comments