mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 23:22:16 -04:00
reduce bottom margin of market offer table
This commit is contained in:
parent
1f47598269
commit
7ef8decc48
1 changed files with 2 additions and 1 deletions
|
@ -111,9 +111,10 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
|||
private ListChangeListener<CurrencyListItem> currencyListItemsListener;
|
||||
private final double dataLimitFactor = 3;
|
||||
private final double initialOfferTableViewHeight = 78; // decrease as MainView's content-pane's top anchor increases
|
||||
private final double offerTableExtraMarginBottom = 0;
|
||||
private final Function<Double, Double> offerTableViewHeight = (screenSize) -> {
|
||||
// initial visible row count=5, header height=30
|
||||
double pixelsPerOfferTableRow = (initialOfferTableViewHeight - 30) / 5.0;
|
||||
double pixelsPerOfferTableRow = (initialOfferTableViewHeight - offerTableExtraMarginBottom) / 5.0;
|
||||
int extraRows = screenSize <= INITIAL_WINDOW_HEIGHT ? 0 : (int) ((screenSize - INITIAL_WINDOW_HEIGHT) / pixelsPerOfferTableRow);
|
||||
return extraRows == 0 ? initialOfferTableViewHeight : Math.ceil(initialOfferTableViewHeight + ((extraRows + 1) * pixelsPerOfferTableRow));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue