Skip to content

Horizontal Scroll Bar does not work correctly with LineNumberFactory #1030

@atsepushel

Description

@atsepushel

Expected Behavior

CodeArea always showing caret (scrolling to visible) on keyboard moving (left/right buttons)

Actual Behavior

CodeArea not showing caret on keyboard moving (left/right buttons). Scroll begin moving only after few keyboard "right" button clicks, looks depended on LineNumberFactory nodes width

Reproducible Demo

  • Your default JavaKeywordsDemo.java
  • Run and change window width for showing horizontal scroll bar
  • photo_2021-07-16_19-46-06
  • Set caret position to the end of the line that is not fully visible and tries move with the keyboard to the right
  • Visible area begin moving only after few buttons button clicks

Environment info:

  • RichTextFX Version: 0.10.6
  • Operating System: Windows 10
  • Java version: 1.8.0_112

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions