#26: Bugfix #44

Merged
SZUT-Dominik merged 1 commit from story/medikamente-modul-medikamente-bearbeiten into main 2024-05-17 13:53:14 +00:00

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());