Fixed: the Decoration element is not aligned to right when in RTL mode
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user