widen currency text box when creating offer

This commit is contained in:
woodser 2025-07-07 20:44:55 -04:00 committed by GitHub
parent ed25756ae8
commit ea506ecaf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -605,6 +605,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
paymentTitledGroupBg.managedProperty().bind(paymentTitledGroupBg.visibleProperty());
currencyComboBox.prefWidthProperty().bind(paymentAccountsComboBox.widthProperty());
currencyComboBox.managedProperty().bind(currencyComboBox.visibleProperty());
currencyTextFieldBox.prefWidthProperty().bind(paymentAccountsComboBox.widthProperty());
currencyTextFieldBox.managedProperty().bind(currencyTextFieldBox.visibleProperty());
}
@ -1038,6 +1039,7 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel<?>> exten
final Tuple3<Label, TextField, VBox> currencyTextFieldTuple = addTopLabelTextField(gridPane, gridRow, Res.get("shared.currency"), "", 5d);
currencyTextField = currencyTextFieldTuple.second;
currencyTextFieldBox = currencyTextFieldTuple.third;
currencyTextFieldBox.setMaxWidth(tradingAccountBoxTuple.first.getMinWidth() / 2);
currencyTextFieldBox.setVisible(false);
editOfferElements.add(currencyTextFieldBox);