Skip to content

Question: How to scroll two CodeAreas simultaneously? #1136

@jplwill

Description

@jplwill

I'm wanting to implement a two-column diff viewer based on RichTextFX's CodeArea; and to do that I need two CodeAreas side-by-side that are scrolled simultaneously. More specifically:

  • Scrolling either CodeArea vertically, by any mechanism, should automatically scroll the other, so they display the same range of lines.
  • Horizontally, I don't much care whether they scroll independently or not.

Is this possible with the current version? What's the cleanest way to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions