فهرست منبع

Fixed a rare layout rendering bug in the Table element.

Marcin Ziąbek 10 ماه پیش
والد
کامیت
3731b6f0fe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Source/QuestPDF/Elements/Table/Table.cs

+ 1 - 1
Source/QuestPDF/Elements/Table/Table.cs

@@ -210,7 +210,7 @@ namespace QuestPDF.Elements.Table
                         if (rowBottomOffsets[currentRow - 1] > availableSpace.Height + Size.Epsilon)
                             break;
 
-                        foreach (var row in Enumerable.Range(cell.Row, cell.Row - currentRow))
+                        foreach (var row in Enumerable.Range(currentRow + 1, cell.Row - (currentRow + 1)))
                             rowBottomOffsets[row] = Math.Max(rowBottomOffsets[row - 1], rowBottomOffsets[row]);
                         
                         currentRow = cell.Row;