Browse Source

Fixed: positioning elements in RTL mode in the Column element

MarcinZiabek 3 years ago
parent
commit
43d1a55df0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QuestPDF/Elements/Column.cs

+ 1 - 1
QuestPDF/Elements/Column.cs

@@ -79,7 +79,7 @@ namespace QuestPDF.Elements
                 
                 var offset = ContentDirection == ContentDirection.LeftToRight
                     ? command.Offset
-                    : new Position(availableSpace.Width - command.Offset.X - command.Measurement.Width, command.Offset.Y);
+                    : new Position(availableSpace.Width - command.Offset.X - command.Size.Width, command.Offset.Y);
                 
                 Canvas.Translate(offset);
                 command.ColumnItem.Draw(targetSize);