Skip to content

Commit c122ba3

Browse files
pavel-alayitext-teamcity
authored andcommitted
Update auto table layout in case empty table.
DEVSIX-1252 Autoported commit. Original commit hash: [2e7ce2f]
1 parent 44d71be commit c122ba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itext/itext.layout/itext/layout/renderer/TableWidths.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ internal float[] AutoLayout() {
312312
toBalance = false;
313313
}
314314
}
315-
if (sumOfPercents < 100 && totalNonPercent == 0) {
315+
if (sumOfPercents > 0 && sumOfPercents < 100 && totalNonPercent == 0) {
316316
// each column has percent value but sum < 100%
317317
// upscale percents
318318
for (int i = 0; i < widths.Length; i++) {

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aa7767c5cb66765034831ba0f6ad3dc08e31ec2a
1+
2e7ce2fb591c8019f9651c66cbf53ac16c199416

0 commit comments

Comments
 (0)