diff --git a/designer_chart/src/com/fr/plugin/chart/range/component/LegendGradientBar.java b/designer_chart/src/com/fr/plugin/chart/range/component/LegendGradientBar.java index 782fc1b795..b13c21352f 100644 --- a/designer_chart/src/com/fr/plugin/chart/range/component/LegendGradientBar.java +++ b/designer_chart/src/com/fr/plugin/chart/range/component/LegendGradientBar.java @@ -39,7 +39,7 @@ public class LegendGradientBar extends JComponent implements ColorSelectable, UI //主题色 private Color subColor; - private int max = 154; + private int max = 150; private int min = 4; //选中的颜色 @@ -77,7 +77,7 @@ public class LegendGradientBar extends JComponent implements ColorSelectable, UI iniListener(); - this.setPreferredSize(new Dimension(10 + max, MAX_VERTICAL)); + this.setPreferredSize(new Dimension(5 + max, MAX_VERTICAL)); } private void initColorsAndDist() {