Compare commits
2 commits
3f6625b270
...
e4793780fd
Author | SHA1 | Date | |
---|---|---|---|
e4793780fd | |||
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