From ff803b3d55f6214b6be597fd1df53f0482b92dfb Mon Sep 17 00:00:00 2001 From: renekton Date: Fri, 30 Aug 2024 11:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=96=E6=8B=BD=E6=9D=A1=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=80=BC=E6=A0=87=E7=AD=BE=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/gui/frpane/UINumberDragPane.java | 3 ++- .../fr/design/chart/series/SeriesCondition/LabelAlphaPane.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/frpane/UINumberDragPane.java b/designer-base/src/main/java/com/fr/design/gui/frpane/UINumberDragPane.java index 053b5a56d6..d024f247fd 100644 --- a/designer-base/src/main/java/com/fr/design/gui/frpane/UINumberDragPane.java +++ b/designer-base/src/main/java/com/fr/design/gui/frpane/UINumberDragPane.java @@ -38,9 +38,10 @@ public class UINumberDragPane extends BasicBeanPane implements GlobalNam public UINumberDragPane(double minValue, double maxValue, double dierta) { dragBar = new UISlider((int) minValue, (int) maxValue); dragBar.setPaintLabels(true); - dragBar.setMajorTickSpacing((int) maxValue); + dragBar.setMajorTickSpacing((int) maxValue - (int) minValue); spinner = createUISpinner(minValue, maxValue, dierta); spinner.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation")); + spinner.setValue(dragBar.getValue()); this.setLayout(new BorderLayout()); this.add(Layouts.row( cell(dragBar).weight(0.7), flex(0.1), cell(spinner).weight(0.7) diff --git a/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/LabelAlphaPane.java b/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/LabelAlphaPane.java index ffc87ea42d..abccf14db5 100644 --- a/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/LabelAlphaPane.java +++ b/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/LabelAlphaPane.java @@ -39,7 +39,6 @@ public class LabelAlphaPane extends ConditionAttrSingleConditionPane