less width of offer and trade details and height of extra info

This commit is contained in:
woodser 2025-06-02 10:44:32 -04:00
parent 0a3a277ef7
commit 719908186b
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
3 changed files with 9 additions and 7 deletions

View file

@ -128,7 +128,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
this.tradePrice = tradePrice;
rowIndex = -1;
width = 1118;
width = Layout.DETAILS_WINDOW_WIDTH;
createGridPane();
addContent();
display();
@ -137,7 +137,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
public void show(Offer offer) {
this.offer = offer;
rowIndex = -1;
width = 1118;
width = Layout.DETAILS_WINDOW_WIDTH;
createGridPane();
addContent();
display();
@ -344,9 +344,9 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
addSeparator(gridPane, ++rowIndex);
TextArea textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("payment.shared.extraInfo"), "", 0).second;
textArea.setText(offer.getCombinedExtraInfo().trim());
textArea.setMaxHeight(200);
textArea.setMaxHeight(Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT);
textArea.setEditable(false);
GUIUtil.adjustHeightAutomatically(textArea);
GUIUtil.adjustHeightAutomatically(textArea, Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT);
}
// get amount reserved for the offer

View file

@ -106,7 +106,7 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
this.trade = trade;
rowIndex = -1;
width = 1118;
width = Layout.DETAILS_WINDOW_WIDTH;
createGridPane();
addContent();
display();
@ -236,9 +236,9 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
addSeparator(gridPane, ++rowIndex);
TextArea textArea = addConfirmationLabelTextArea(gridPane, ++rowIndex, Res.get("payment.shared.extraInfo.offer"), "", 0).second;
textArea.setText(offer.getCombinedExtraInfo().trim());
textArea.setMaxHeight(200);
textArea.setMaxHeight(Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT);
textArea.setEditable(false);
GUIUtil.adjustHeightAutomatically(textArea);
GUIUtil.adjustHeightAutomatically(textArea, Layout.DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT);
}
if (contract != null) {

View file

@ -42,4 +42,6 @@ public class Layout {
public static final double LIST_ROW_HEIGHT = 34;
public static final double ROUNDED_ARC = 20;
public static final double FLOATING_ICON_Y = 9; // adjust when .jfx-text-field padding is changed for right icons
public static final double DETAILS_WINDOW_WIDTH = 950;
public static final double DETAILS_WINDOW_EXTRA_INFO_MAX_HEIGHT = 100;
}