Skip to content

Commit

Permalink
Move a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Jul 29, 2024
1 parent 30d1980 commit 98061fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,13 @@ private void refreshPopup() {
}


// +2 to prevent an unnecessary scrollbar
if (completionList.getSelectionModel().getSelectedIndex() == -1) {
completionList.getSelectionModel().select(0);
}

((PopupPane) input.getScene().getRoot()).showPopup(completionList);

// +2 to prevent an unnecessary scrollbar
completionList.setPrefHeight(completionList.getItems().size() * completionList.getFixedCellSize() + 2);

final var location = computePopupLocation();
Expand Down

0 comments on commit 98061fe

Please sign in to comment.