diff --git a/desktop/src/main/java/bisq/desktop/components/chart/ChartView.java b/desktop/src/main/java/bisq/desktop/components/chart/ChartView.java index 6e2ccbe6a9..5c3c366eca 100644 --- a/desktop/src/main/java/bisq/desktop/components/chart/ChartView.java +++ b/desktop/src/main/java/bisq/desktop/components/chart/ChartView.java @@ -177,28 +177,29 @@ public abstract class ChartView { double width = newValue.doubleValue(); if (width > 0) { double rightPadding = width + 14; - VBox.setMargin(timeIntervalBox, new Insets(0, rightPadding, 0, paddingLeft)); - VBox.setMargin(timelineNavigation, new Insets(0, rightPadding, 0, paddingLeft)); - VBox.setMargin(timelineLabels, new Insets(0, rightPadding, 0, paddingLeft)); + VBox.setMargin(timeIntervalBox, new Insets(paddingTop, rightPadding, 0, paddingLeft)); + VBox.setMargin(timelineNavigation, new Insets(paddingTop, rightPadding, 0, paddingLeft)); + VBox.setMargin(timelineLabels, new Insets(paddingTop, rightPadding, 0, paddingLeft)); VBox.setMargin(legendBox1, new Insets(10, rightPadding, 0, paddingLeft)); if (legendBox2 != null) { - VBox.setMargin(legendBox2, new Insets(-20, rightPadding, 0, paddingLeft)); + VBox.setMargin(legendBox2, new Insets(paddingTop, rightPadding, 0, paddingLeft)); } if (legendBox3 != null) { - VBox.setMargin(legendBox3, new Insets(-20, rightPadding, 0, paddingLeft)); + VBox.setMargin(legendBox3, new Insets(paddingTop, rightPadding, 0, paddingLeft)); } if (legendBox4 != null) { - VBox.setMargin(legendBox4, new Insets(-20, rightPadding, 0, paddingLeft)); + VBox.setMargin(legendBox4, new Insets(paddingTop, rightPadding, 0, paddingLeft)); } if (legendBox5 != null) { - VBox.setMargin(legendBox5, new Insets(-20, rightPadding, 0, paddingLeft)); + VBox.setMargin(legendBox5, new Insets(paddingTop, rightPadding, 0, paddingLeft)); } if (model.getDividerPositions()[0] == 0 && model.getDividerPositions()[1] == 1) { @@ -207,25 +208,25 @@ public abstract class ChartView