Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectableTextBlock does not work properly when TextAlignment is not Left #17243

Open
kuiperzone opened this issue Oct 11, 2024 · 0 comments
Open
Labels

Comments

@kuiperzone
Copy link

kuiperzone commented Oct 11, 2024

Describe the bug

SelectableTextBlock does not work properly when TextAlignment is not Left. Certain portions cannot be selected.

I'm on Linux, but suspect it might apply to other platforms.

See the video.

Screencast.from.2024-10-11.05-11-08.webm

To Reproduce

private static SelectableTextBlock GetTextBlock(TextAlignment align)
{
    var text = new SelectableTextBlock();
    text.TextAlignment = align;
    text.Inlines!.Add( new Run("H-Center") );
    text.Inlines.Add( new LineBreak() );
    text.Inlines.Add( new Run("V-Middle") );
    text.Inlines.Add( new LineBreak() );
    text.Inlines.Add( new Run("Larger") );

    return text;
}

Expected behavior

No response

Avalonia version

11.1.3

OS

Linux

Additional context

No response

@kuiperzone kuiperzone added the bug label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant