Skip to content

Bug: scrollBy calls succeeding moveTo calls are negated by moveTo calls #389

@vkhoroshko

Description

@vkhoroshko

Hello,

We're using CodeArea and trying to combine moveTo operation and setEstimatedScrollY operation after that.
Example:

codeArea.moveTo(startParagraph, 0);
codeArea.setEstimatedScrollY(startParagraphYOffset + delta);

We need to scroll a little to give more context to a user (i.e. few lines after caret position) cause when VirtualizedScrollPane is used and current scroll postion is at the top - moveTo just scrolls to specified paragraph that will be at the bottom of visible area (i.e. no lines after that).

If I comment moveTo instruction - than second instruction works. As I understand - we need to wait till moveTo really worked and only try to set scroll position after that. We tried Platform.runLater but without success.

Could you please suggest whether there is a possible solution to this issue?

Thanks in advance.

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