From 0dc0fb0029baea19170d10d3aca3f9eae5bf87c4 Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Tue, 6 May 2025 10:13:40 -0400 Subject: [PATCH] remove scrollbar on offer book chart view --- .../src/main/java/haveno/desktop/main/MainView.java | 10 ---------- .../main/market/offerbook/OfferBookChartView.java | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/MainView.java b/desktop/src/main/java/haveno/desktop/main/MainView.java index ef5e72175d..126e68a3f4 100644 --- a/desktop/src/main/java/haveno/desktop/main/MainView.java +++ b/desktop/src/main/java/haveno/desktop/main/MainView.java @@ -340,16 +340,6 @@ public class MainView extends InitializableView { secondaryNavContainer.setPickOnBounds(false); secondaryNavContainer.getChildren().add(secondaryNav); - // if (rootContainer.getNodeOrientation() == NodeOrientation.LEFT_TO_RIGHT) { - // log.warn("CENTERING RIGHT"); - // rightButtons.setAlignment(Pos.CENTER_RIGHT); - // StackPane.setMargin(rightButtons, new Insets(5, 10, 0, 0)); - // } else { - // rightButtons.setAlignment(Pos.CENTER_LEFT); - // log.warn("CENTERING LEFT"); - // StackPane.setMargin(rightButtons, new Insets(5, 0, 0, 10)); - // } - AnchorPane contentContainer = new AnchorPane() {{ getStyleClass().add("content-pane"); setLeftAnchor(this, 0d); diff --git a/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java b/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java index 205753b86f..df564879de 100644 --- a/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java +++ b/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java @@ -107,7 +107,7 @@ public class OfferBookChartView extends ActivatableViewAndModel changeListener; private ListChangeListener currencyListItemsListener; private final double dataLimitFactor = 3; - private final double initialOfferTableViewHeight = 121; + private final double initialOfferTableViewHeight = 88; // decrease as MainView's content-pane's top anchor increases private final Function offerTableViewHeight = (screenSize) -> { // initial visible row count=5, header height=30 double pixelsPerOfferTableRow = (initialOfferTableViewHeight - 30) / 5.0; @@ -661,7 +661,7 @@ public class OfferBookChartView extends ActivatableViewAndModel(tableView, vBox, button, titleLabel);