Skip to content

Commit

Permalink
Follow caret fix (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen authored Aug 14, 2020
1 parent 10849d9 commit 7be08d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ public void dispose() {
private void followCaret() {
int parIdx = getCurrentParagraph();
Cell<Paragraph<PS, SEG, S>, ParagraphBox<PS, SEG, S>> cell = virtualFlow.getCell(parIdx);
Bounds caretBounds = cell.getNode().getCaretBounds(caretSelectionBind.getUnderlyingCaret());
Bounds caretBounds = caretSelectionBind.getUnderlyingCaret().getLayoutBounds();
double graphicWidth = cell.getNode().getGraphicPrefWidth();
Bounds region = extendLeft(caretBounds, graphicWidth);
double scrollX = virtualFlow.getEstimatedScrollX();
Expand Down

0 comments on commit 7be08d1

Please sign in to comment.