#26: Bugfix
All checks were successful
Quality Check / Linting Check (push) Successful in 12s
Quality Check / Javadoc Check (push) Successful in 21s
Quality Check / Linting Check (pull_request) Successful in 12s
Quality Check / Javadoc Check (pull_request) Successful in 21s

This commit is contained in:
Dominik Säume 2024-05-17 15:50:53 +02:00
parent 8496f714d3
commit fba717ab1e
Signed by: SZUT-Dominik
GPG key ID: DACB4B96EB59ABA8

View file

@ -40,7 +40,7 @@ public class IngredientListCell extends ListCell<Ingredient> {
BUTTON_PADDING_Y, BUTTON_PADDING_Y,
BUTTON_PADDING_X BUTTON_PADDING_X
)); ));
deleteButton.setOnAction(event -> getListView().getItems().remove(this)); deleteButton.setOnAction(event -> getListView().getItems().remove(getItem()));
// Calculate Delete Button Width // Calculate Delete Button Width
Text textNode = new Text(deleteButton.getText()); Text textNode = new Text(deleteButton.getText());