AvaloniaEdit icon indicating copy to clipboard operation
AvaloniaEdit copied to clipboard

RTL issue when FlowDirection set to RightToLeft

Open adirh3 opened this issue 4 months ago • 3 comments

When using RTL text with FlowDirection = FlowDirection.RightToLeft the text is displayed inversed. How it should look (works with TextBox) - image

How it is with TextEditor - image

To reproduce -

<ave:TextEditor Text="בדיקה בעברית" FlowDirection="FlowDirection.RightToLeft" />

Thanks!

adirh3 avatar Feb 27 '24 19:02 adirh3

Cc @Gillibald

danipen avatar Feb 27 '24 19:02 danipen

Looks like VisualLines have a mirror transform applied

Gillibald avatar Feb 27 '24 19:02 Gillibald

FYI it happens with English text as well, it just flips everything I guess

adirh3 avatar Feb 27 '24 20:02 adirh3