#26: Bugfix #44
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class IngredientListCell extends ListCell<Ingredient> {
|
|||
BUTTON_PADDING_Y,
|
||||
BUTTON_PADDING_X
|
||||
));
|
||||
deleteButton.setOnAction(event -> getListView().getItems().remove(this));
|
||||
deleteButton.setOnAction(event -> getListView().getItems().remove(getItem()));
|
||||
|
||||
// Calculate Delete Button Width
|
||||
Text textNode = new Text(deleteButton.getText());
|
||||
|
|
Loading…
Reference in a new issue