Skip to content

Commit 2e7ce2f

Browse files
committed
Update auto table layout in case empty table.
DEVSIX-1252
1 parent aa7767c commit 2e7ce2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/TableWidths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ float[] autoLayout() {
296296
}
297297
}
298298

299-
if (sumOfPercents < 100 && totalNonPercent == 0) {
299+
if (sumOfPercents > 0 && sumOfPercents < 100 && totalNonPercent == 0) {
300300
// each column has percent value but sum < 100%
301301
// upscale percents
302302
for (int i = 0; i < widths.length; i++) {

0 commit comments

Comments
 (0)