Fixed: the Decoration element is not aligned to right when in RTL mode

This commit is contained in:
MarcinZiabek
2022-11-01 21:32:04 +01:00
parent f647b79a0a
commit 2a0e91af68
+1 -1
View File
@@ -68,7 +68,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 - width, command.Offset.Y);
Canvas.Translate(offset);
command.Element.Draw(elementSize);