From ea92655ef5d13d225e56b8a39012833bc8efe37a Mon Sep 17 00:00:00 2001 From: MarcinZiabek Date: Thu, 30 Dec 2021 21:53:42 +0100 Subject: [PATCH] Typo fixes --- QuestPDF.Examples/TableExamples.cs | 2 +- QuestPDF/Elements/Table/Table.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/QuestPDF.Examples/TableExamples.cs b/QuestPDF.Examples/TableExamples.cs index 995aaf4..6c9b190 100644 --- a/QuestPDF.Examples/TableExamples.cs +++ b/QuestPDF.Examples/TableExamples.cs @@ -27,7 +27,7 @@ namespace QuestPDF.Examples .EnableCaching() .EnableDebugging(false) .ShowResults() - .Render(container => GeneratePerformanceStructure(container, 1)); + .Render(container => GeneratePerformanceStructure(container, 10)); } public static void GeneratePerformanceStructure(IContainer container, int repeats) diff --git a/QuestPDF/Elements/Table/Table.cs b/QuestPDF/Elements/Table/Table.cs index 0bc5166..e9b7983 100644 --- a/QuestPDF/Elements/Table/Table.cs +++ b/QuestPDF/Elements/Table/Table.cs @@ -174,13 +174,13 @@ namespace QuestPDF.Elements.Table var cellSize = cell.Measure(availableCellSize); - // corner case: cell within the row is not fully rendered, do not attempt to render next row + // corner case: if cell within the row is not fully rendered, do not attempt to render next row if (cellSize.Type == SpacePlanType.PartialRender) { maxRenderingRow = Math.Min(maxRenderingRow, cell.Row + cell.RowSpan - 1); } - // corner case: cell within the row want to wrap to the next page, do not attempt to render this row + // corner case: if cell within the row want to wrap to the next page, do not attempt to render this row if (cellSize.Type == SpacePlanType.Wrap) { maxRenderingRow = Math.Min(maxRenderingRow, cell.Row - 1); @@ -201,7 +201,7 @@ namespace QuestPDF.Elements.Table }); } - // corner case: reject cell if other cells within the same rows are rejected + // corner case: reject cell if other cells within the same row are rejected return commands.Where(x => x.Cell.Row <= maxRenderingRow).ToList(); }