Typo fixes

This commit is contained in:
MarcinZiabek
2021-12-30 21:53:42 +01:00
committed by Marcin Ziąbek
parent 3f8463e9b7
commit ea92655ef5
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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();
}