Skip to content

Commit

Permalink
Add scroll to feature for select command
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluiexo committed Apr 4, 2024
1 parent f58aa1c commit 0751fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/staffconnect/ui/PersonListPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void setListSelectedIndex(int index) {
// guard clause to prevent invalid index
if (index >= 0 && index < personListView.getItems().size()) {
personListView.getSelectionModel().clearAndSelect(index);
personListView.scrollTo(index);

Check warning on line 53 in src/main/java/staffconnect/ui/PersonListPanel.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/staffconnect/ui/PersonListPanel.java#L53

Added line #L53 was not covered by tests
}

}
Expand Down

0 comments on commit 0751fb2

Please sign in to comment.