From 99b83a9a9ae0598a70bac0571c7f7ffe08c0812e Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Thu, 25 Sep 2025 16:04:18 -0400 Subject: [PATCH] do not cut off offer agreement terms and conditions --- .../desktop/main/overlays/windows/OfferDetailsWindow.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java index 6dd1debaa4..8940c7c178 100644 --- a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java +++ b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java @@ -79,6 +79,7 @@ import javafx.scene.image.ImageView; import javafx.scene.layout.GridPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Priority; +import javafx.scene.layout.Region; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; @@ -334,6 +335,7 @@ public class OfferDetailsWindow extends Overlay { textArea.setMaxHeight(Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT); textArea.setEditable(false); GUIUtil.adjustHeightAutomatically(textArea, Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT); + GridPane.setVgrow(textArea, Priority.SOMETIMES); } // get amount reserved for the offer @@ -436,6 +438,8 @@ public class OfferDetailsWindow extends Overlay { final Tuple2 labelLabelTuple2 = addConfirmationLabelLabel(gridPane, rowIndex, Res.get("offerDetailsWindow.agree"), Res.get("createOffer.tac"), Layout.TWICE_FIRST_ROW_AND_COMPACT_GROUP_DISTANCE); labelLabelTuple2.second.setWrapText(true); + labelLabelTuple2.second.setMinHeight(Region.USE_PREF_SIZE); + GridPane.setVgrow(labelLabelTuple2.second, Priority.ALWAYS); addConfirmAndCancelButtons(true); } else if (takeOfferHandlerOptional.isPresent()) {