Skip to content

Commit

Permalink
Merge pull request #2435 from ripcurlx/improve-payout-selection-for-a…
Browse files Browse the repository at this point in the history
…rbitrator

Improve payout layout for arbitration
  • Loading branch information
ManfredKarrer authored Feb 19, 2019
2 parents 6febfb0 + 4690bda commit 5e14523
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,21 +394,24 @@ private void applyCustomAmounts(InputTextField inputTextField) {

private void addPayoutAmountTextFields() {
buyerPayoutAmountInputTextField = new InputTextField();
buyerPayoutAmountInputTextField.setLabelFloat(true);
buyerPayoutAmountInputTextField.setEditable(false);
buyerPayoutAmountInputTextField.setPromptText(Res.get("disputeSummaryWindow.payoutAmount.buyer"));

sellerPayoutAmountInputTextField = new InputTextField();
sellerPayoutAmountInputTextField.setLabelFloat(true);
sellerPayoutAmountInputTextField.setPromptText(Res.get("disputeSummaryWindow.payoutAmount.seller"));
sellerPayoutAmountInputTextField.setEditable(false);

isLoserPublisherCheckBox = new AutoTooltipCheckBox(Res.get("disputeSummaryWindow.payoutAmount.invert"));

VBox vBox = new VBox();
vBox.setSpacing(10);
vBox.setSpacing(15);
vBox.getChildren().addAll(buyerPayoutAmountInputTextField, sellerPayoutAmountInputTextField, isLoserPublisherCheckBox);

VBox vBox2 = addTopLabelWithVBox(gridPane, rowIndex, Res.get("disputeSummaryWindow.payout"), vBox, 10).second;
GridPane.setColumnIndex(vBox2, 1);
GridPane.setMargin(vBox, new Insets(Layout.FIRST_ROW_AND_GROUP_DISTANCE, 0, 0, 0));
GridPane.setRowIndex(vBox, rowIndex);
GridPane.setColumnIndex(vBox, 1);
gridPane.getChildren().add(vBox);
}

private void addReasonControls() {
Expand Down

0 comments on commit 5e14523

Please sign in to comment.