Skip to content

Commit

Permalink
Remove extra UI element and text string
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrm committed Jun 21, 2019
1 parent 7a66feb commit 664c7c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -147,20 +146,14 @@ 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<VBox, Label, ComboBox<CurrencyListItem>> currencyComboBoxTuple = addTopLabelComboBox(Res.get("shared.currency"),
Res.get("list.currency.select"), 0);
this.currencyComboBox = currencyComboBoxTuple.third;
this.currencyComboBox.setButtonCell(GUIUtil.getCurrencyListItemButtonCell(Res.get("shared.oneOffer"),
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));
Expand All @@ -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
Expand Down

0 comments on commit 664c7c6

Please sign in to comment.