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.
Hello,
We're using CodeArea and trying to combine moveTo operation and setEstimatedScrollY operation after that.
Example:
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.runLaterbut without success.Could you please suggest whether there is a possible solution to this issue?
Thanks in advance.