Fixed: table rendering in the RTL mode

This commit is contained in:
MarcinZiabek
2022-10-29 00:40:36 +02:00
parent e3ff2960e1
commit 7bce01d6e6
+1 -1
View File
@@ -119,7 +119,7 @@ namespace QuestPDF.Elements.Table
var offset = ContentDirection == ContentDirection.LeftToRight
? 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);
command.Cell.Draw(command.Size);