#26: Bugfix
This commit is contained in:
parent
3f6625b270
commit
85b6b79d7f
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue