Skip to content

AvaloniaEdit first FontSize change is not applied directly #458

Open
@FG-rgb

Description

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions