Skip to content

Commit 9b98b70

Browse files
pavel-alayitext-teamcity
authored andcommitted
TableWidth: minor changes
DEVSIX-1252 Autoported commit. Original commit hash: [d1613df]
1 parent 8149cd1 commit 9b98b70

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
@@ -277,7 +277,7 @@ internal float[] AutoLayout() {
277277
for (int i = 0; i < widths.Length; i++) {
278278
if (widths[i].isPercent) {
279279
if (sumOfPercents < 100 && sumOfPercents + widths[i].width > 100) {
280-
widths[i].width -= sumOfPercents + widths[i].width - 100;
280+
widths[i].width = sumOfPercents - 100;
281281
sumOfPercents += widths[i].width;
282282
Warn100percent();
283283
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
427e34f00e2053b28aacf75cb2ac772c19ea2a45
1+
d1613dff58e3bf7ff92664eac39ec7628ac916d2

0 commit comments

Comments
 (0)