Browse Source

Fixed: table rendering in the RTL mode

MarcinZiabek 3 years ago
parent
commit
7bce01d6e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QuestPDF/Elements/Table/Table.cs

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

@@ -119,7 +119,7 @@ namespace QuestPDF.Elements.Table
                 
                 
                 var offset = ContentDirection == ContentDirection.LeftToRight
                 var offset = ContentDirection == ContentDirection.LeftToRight
                     ? command.Offset
                     ? command.Offset
-                    : new Position(availableSpace.Width - command.Offset.X - command.Size.Width, 0);
+                    : new Position(availableSpace.Width - command.Offset.X - command.Size.Width, command.Offset.Y);
                 
                 
                 Canvas.Translate(offset);
                 Canvas.Translate(offset);
                 command.Cell.Draw(command.Size);
                 command.Cell.Draw(command.Size);