Fix issue with label width, add deposits

This commit is contained in:
Manfred Karrer 2019-05-14 15:18:13 +02:00
parent b8cf1d7e67
commit 4f7558b899
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
2 changed files with 12 additions and 1 deletions

View file

@ -102,6 +102,9 @@ public class ContractWindow extends Overlay<ContractWindow> {
@Override
protected void createGridPane() {
super.createGridPane();
gridPane.getColumnConstraints().get(0).setMinWidth(250d);
gridPane.setPadding(new Insets(35, 40, 30, 40));
gridPane.getStyleClass().add("grid-pane");
}

View file

@ -246,7 +246,7 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
private void addInfoPane() {
Contract contract = dispute.getContract();
addTitledGroupBg(gridPane, ++rowIndex, 16, Res.get("disputeSummaryWindow.title")).getStyleClass().add("last");
addTitledGroupBg(gridPane, ++rowIndex, 17, Res.get("disputeSummaryWindow.title")).getStyleClass().add("last");
addConfirmationLabelLabel(gridPane, rowIndex, Res.get("shared.tradeId"), dispute.getShortTradeId(),
Layout.TWICE_FIRST_ROW_DISTANCE);
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("disputeSummaryWindow.openDate"), formatter.formatDateTime(dispute.getOpeningDate()));
@ -268,6 +268,14 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
formatter.formatPrice(contract.getTradePrice()));
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.tradeVolume"),
formatter.formatVolumeWithCode(contract.getTradeVolume()));
String securityDeposit = Res.getWithColAndCap("shared.buyer") +
" " +
formatter.formatCoinWithCode(contract.getOfferPayload().getBuyerSecurityDeposit()) +
" / " +
Res.getWithColAndCap("shared.seller") +
" " +
formatter.formatCoinWithCode(contract.getOfferPayload().getSellerSecurityDeposit());
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), securityDeposit);
}
private void addCheckboxes() {