Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,11 @@ public void showParagraphRegion(int paragraphIndex, Bounds region) {
suspendVisibleParsWhile(() -> virtualFlow.show(paragraphIndex, region));
}

public void showParagraphAtCenter(int paragraphIndex) {
double offset = Math.floor( getHeight() / 2.0 );
suspendVisibleParsWhile(() -> virtualFlow.showAtOffset(paragraphIndex,offset));
}

@Override
public void requestFollowCaret() {
followCaretRequested = true;
Expand Down