Browse Source

Typo fixes

MarcinZiabek 4 years ago
parent
commit
ea92655ef5
2 changed files with 4 additions and 4 deletions
  1. 1 1
      QuestPDF.Examples/TableExamples.cs
  2. 3 3
      QuestPDF/Elements/Table/Table.cs

+ 1 - 1
QuestPDF.Examples/TableExamples.cs

@@ -27,7 +27,7 @@ namespace QuestPDF.Examples
                 .EnableCaching()
                 .EnableCaching()
                 .EnableDebugging(false)
                 .EnableDebugging(false)
                 .ShowResults()
                 .ShowResults()
-                .Render(container => GeneratePerformanceStructure(container, 1));
+                .Render(container => GeneratePerformanceStructure(container, 10));
         }
         }
         
         
         public static void GeneratePerformanceStructure(IContainer container, int repeats)
         public static void GeneratePerformanceStructure(IContainer container, int repeats)

+ 3 - 3
QuestPDF/Elements/Table/Table.cs

@@ -174,13 +174,13 @@ namespace QuestPDF.Elements.Table
 
 
                     var cellSize = cell.Measure(availableCellSize);
                     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)
                     if (cellSize.Type == SpacePlanType.PartialRender)
                     {
                     {
                         maxRenderingRow = Math.Min(maxRenderingRow, cell.Row + cell.RowSpan - 1);
                         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)
                     if (cellSize.Type == SpacePlanType.Wrap)
                     {
                     {
                         maxRenderingRow = Math.Min(maxRenderingRow, cell.Row - 1);
                         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();
                 return commands.Where(x => x.Cell.Row <= maxRenderingRow).ToList();
             }
             }