trim extra info in offer and trade details windows

This commit is contained in:
woodser 2025-05-17 11:38:13 -04:00
parent abc5f7812c
commit 7d5227c83c
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 2 additions and 2 deletions

View file

@ -314,7 +314,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
}
if (showOfferExtraInfo) {
TextArea textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("payment.shared.extraInfo"), "", 0).second;
textArea.setText(offer.getCombinedExtraInfo());
textArea.setText(offer.getCombinedExtraInfo().trim());
textArea.setMaxHeight(200);
GUIUtil.adjustHeightAutomatically(textArea);
}

View file

@ -227,7 +227,7 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
if (offer.getCombinedExtraInfo() != null && !offer.getCombinedExtraInfo().isEmpty()) {
TextArea textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("payment.shared.extraInfo.offer"), "", 0).second;
textArea.setText(offer.getCombinedExtraInfo());
textArea.setText(offer.getCombinedExtraInfo().trim());
textArea.setMaxHeight(200);
textArea.sceneProperty().addListener((o, oldScene, newScene) -> {
if (newScene != null) {