From 664c7c6f876567958d15064552bb9271fe2a43d8 Mon Sep 17 00:00:00 2001 From: sqrrm Date: Fri, 21 Jun 2019 11:20:45 +0200 Subject: [PATCH] Remove extra UI element and text string --- core/src/main/resources/i18n/displayStrings.properties | 1 - .../main/market/offerbook/OfferBookChartView.java | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/src/main/resources/i18n/displayStrings.properties b/core/src/main/resources/i18n/displayStrings.properties index 5775b09143f..44443f9b156 100644 --- a/core/src/main/resources/i18n/displayStrings.properties +++ b/core/src/main/resources/i18n/displayStrings.properties @@ -53,7 +53,6 @@ shared.oneOffer=offer shared.multipleOffers=offers shared.Offer=Offer shared.openOffers=open offers -shared.hideExtremes=Hide extremes shared.trade=trade shared.trades=trades shared.openTrades=open trades diff --git a/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartView.java b/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartView.java index 517216a0c31..66392ab4967 100644 --- a/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartView.java +++ b/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartView.java @@ -62,7 +62,6 @@ import javafx.scene.control.TableView; import javafx.scene.image.ImageView; import javafx.scene.layout.AnchorPane; -import javafx.scene.layout.GridPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Priority; import javafx.scene.layout.Region; @@ -147,10 +146,6 @@ public OfferBookChartView(OfferBookChartViewModel model, Navigation navigation, public void initialize() { createListener(); - // Header with currency combobox and checkbox to show extreme values - GridPane topGrid = new GridPane(); - - // Currency combobox final Tuple3> currencyComboBoxTuple = addTopLabelComboBox(Res.get("shared.currency"), Res.get("list.currency.select"), 0); this.currencyComboBox = currencyComboBoxTuple.third; @@ -158,9 +153,7 @@ public void initialize() { Res.get("shared.multipleOffers"), model.preferences)); this.currencyComboBox.setCellFactory(GUIUtil.getCurrencyListItemCellFactory(Res.get("shared.oneOffer"), Res.get("shared.multipleOffers"), model.preferences)); - topGrid.getChildren().add(currencyComboBoxTuple.first); - // Chart createChart(); VBox.setMargin(chartPane, new Insets(0, 0, 5, 0)); @@ -186,7 +179,7 @@ public void initialize() { tupleSell.second.setUserData(OfferPayload.Direction.SELL.name()); bottomHBox.getChildren().addAll(tupleBuy.second, tupleSell.second); - root.getChildren().addAll(topGrid, chartPane, bottomHBox); + root.getChildren().addAll(currencyComboBoxTuple.first, chartPane, bottomHBox); } @Override