Skip to content

Commit

Permalink
Fix overflowing checkbox when listview is collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Aug 26, 2024
1 parent 486d42d commit 370965c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class OfferbookListView extends bisq.desktop.common.view.View<VBox, Offer
private final Label title, showMyOffersOnlyLabel;
private final BisqTableView<OfferbookListItem> tableView;
private final BisqTooltip titleTooltip;
private final HBox header;
private final HBox header, showOnlyMyMessagesHBox;
private final ImageView offerListWhiteIcon, offerListGreyIcon, offerListGreenIcon;
private final DropdownMenu offerDirectionFilterMenu, paymentsFilterMenu;
private final ListChangeListener<FiatPaymentMethod> availablePaymentsChangeListener;
Expand Down Expand Up @@ -106,7 +106,7 @@ public class OfferbookListView extends bisq.desktop.common.view.View<VBox, Offer
paymentsFilterMenu = createAndGetPaymentsFilterDropdownMenu();
showMyOffersOnlyLabel = new Label(Res.get("bisqEasy.offerbook.offerList.table.filters.showMyOffersOnly"));
showOnlyMyMessages = new CheckBox();
HBox showOnlyMyMessagesHBox = new HBox(5, showOnlyMyMessages, showMyOffersOnlyLabel);
showOnlyMyMessagesHBox = new HBox(5, showOnlyMyMessages, showMyOffersOnlyLabel);
showOnlyMyMessagesHBox.getStyleClass().add("offerbook-subheader-checkbox");
showOnlyMyMessagesHBox.setAlignment(Pos.CENTER);

Expand Down Expand Up @@ -153,6 +153,8 @@ protected void onViewAttached() {
Transitions.expansionAnimation(root, COLLAPSED_LIST_WIDTH + 20, EXPANDED_OFFER_LIST_WIDTH, () -> {
paymentsFilterMenu.setVisible(true);
paymentsFilterMenu.setManaged(true);
showOnlyMyMessagesHBox.setVisible(true);
showOnlyMyMessagesHBox.setManaged(true);
});
title.setOnMouseExited(e -> title.setGraphic(offerListGreenIcon));
} else {
Expand All @@ -171,6 +173,8 @@ protected void onViewAttached() {
title.setOnMouseExited(e -> title.setGraphic(offerListGreyIcon));
paymentsFilterMenu.setVisible(false);
paymentsFilterMenu.setManaged(false);
showOnlyMyMessagesHBox.setVisible(false);
showOnlyMyMessagesHBox.setManaged(false);
});
}
}
Expand Down

0 comments on commit 370965c

Please sign in to comment.