AvaloniaEdit icon indicating copy to clipboard operation
AvaloniaEdit copied to clipboard

AvaloniaEdit first FontSize change is not applied directly

Open FabianGolembiewski-sp opened this issue 1 year ago • 1 comments

Describe the bug

When using AvaloniaEdit.TextEditor, changing the FontSize is not applied on first change.

OperatingSystem: Windows 10 Professional Version 22H2 (Build 19045.5011) 64 Bit

To Reproduce

Steps to Reproduce: Use AvaloniaEdit.TextEditor in a UserControl. Add a button to change FontSize in code Behind. Run the project and let the user change the text of it. After that click the button to change the FontSize => The Style AvaloniaEdit.TextEditor is not changed when firstly used. Retry to change the FontSize. => Now the FontSize is changed and directly visible.

Expected behavior

Changing the FontSize should directly be applied/visible on first try.

Avalonia version

11.1.0

OS

Windows

Additional context

No response

FabianGolembiewski-sp avatar Oct 24 '24 11:10 FabianGolembiewski-sp

I can't reproduce this issue.

I tested it with AvaloniaEdit.Demo built from source (11.1.0, 11.2.0, and master), as well as with Nuget packages (11.1.0, 11.2.0) using the steps described above. It works as expected.

@FG-rgb Is this still a problem? I suggest closing the issue.

mgarstenauer avatar Mar 28 '25 21:03 mgarstenauer