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 c122ba3 commit ba98bf0Copy full SHA for ba98bf0
itext/itext.layout/itext/layout/renderer/TableWidths.cs
@@ -302,7 +302,7 @@ internal float[] AutoLayout() {
302
if (!fixedTableWidth) {
303
float tableWidthBasedOnPercents = sumOfPercents < 100 ? totalNonPercent * 100 / (100 - sumOfPercents) : 0;
304
for (int i = 0; i < numberOfColumns; i++) {
305
- if (widths[i].isPercent) {
+ if (widths[i].isPercent && widths[i].width > 0) {
306
tableWidthBasedOnPercents = Math.Max(widths[i].max * 100 / widths[i].width, tableWidthBasedOnPercents);
307
}
308
port-hash
@@ -1 +1 @@
1
-2e7ce2fb591c8019f9651c66cbf53ac16c199416
+751ace58eb7ba47dcf399ed44ec2e0c3224766c8
0 commit comments