Skip to content

Commit

Permalink
scrollto selected item
Browse files Browse the repository at this point in the history
  • Loading branch information
lgajos committed Jan 2, 2021
1 parent 49843fb commit e06171b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/notepack/NotebookTabController.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public void selectNote(Note note) {

TreeItem<NoteTreeViewItem> item = treeViewItemsCache.get(note.getIdent());
if (item != null) {
int nodeIndex = notepadStructure.getRow(item);
notepadStructure.getSelectionModel().select(item);
notepadStructure.scrollTo(nodeIndex);
}

}
Expand Down

0 comments on commit e06171b

Please sign in to comment.