Skip to content

Commit

Permalink
fix occasional miscolored buttons to remove or edit my offer
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Dec 21, 2024
1 parent 42ede83 commit fdee044
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,39 +1069,39 @@ public TableCell<OfferBookListItem, OfferBookListItem> call(TableColumn<OfferBoo
return new TableCell<>() {
OfferFilterService.Result canTakeOfferResult = null;

final ImageView iconView = new ImageView();
final AutoTooltipButton button = new AutoTooltipButton();

{
button.setGraphic(iconView);
button.setGraphicTextGap(10);
button.setPrefWidth(10000);
}

final ImageView iconView2 = new ImageView();
final AutoTooltipButton button2 = new AutoTooltipButton();

{
button2.setGraphic(iconView2);
button2.setGraphicTextGap(10);
button2.setPrefWidth(10000);
}

final HBox hbox = new HBox();

{
hbox.setSpacing(8);
hbox.setAlignment(Pos.CENTER);
hbox.getChildren().add(button);
hbox.getChildren().add(button2);
HBox.setHgrow(button, Priority.ALWAYS);
HBox.setHgrow(button2, Priority.ALWAYS);
}

@Override
public void updateItem(final OfferBookListItem item, boolean empty) {
super.updateItem(item, empty);

final ImageView iconView = new ImageView();
final AutoTooltipButton button = new AutoTooltipButton();

{
button.setGraphic(iconView);
button.setGraphicTextGap(10);
button.setPrefWidth(10000);
}

final ImageView iconView2 = new ImageView();
final AutoTooltipButton button2 = new AutoTooltipButton();

{
button2.setGraphic(iconView2);
button2.setGraphicTextGap(10);
button2.setPrefWidth(10000);
}

final HBox hbox = new HBox();

{
hbox.setSpacing(8);
hbox.setAlignment(Pos.CENTER);
hbox.getChildren().add(button);
hbox.getChildren().add(button2);
HBox.setHgrow(button, Priority.ALWAYS);
HBox.setHgrow(button2, Priority.ALWAYS);
}

TableRow<OfferBookListItem> tableRow = getTableRow();
if (item != null && !empty) {
Offer offer = item.getOffer();
Expand Down

0 comments on commit fdee044

Please sign in to comment.