mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-24 14:58:46 -04:00
less width of offer and trade details and height of extra info
This commit is contained in:
parent
0a3a277ef7
commit
719908186b
3 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue