Skip to content

WrapText + LineNumber, wrong line numbers position #488

@AlexP11223

Description

@AlexP11223

When text wrapping and line numbers are enabled, line numbers are displayed incorrectly (which is very confusing and makes them unusable):

They displayed in the center instead of the beginning of the line, like in other text editors. For example Notepad++:

Tried in current master spellchecking demo, as well as in my project with stable and milestone RichTextFX releases.

    StyleClassedTextArea textArea = new StyleClassedTextArea();
    textArea.setWrapText(true);
    textArea.setParagraphGraphicFactory(LineNumberFactory.get(textArea));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions