diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartLabelStylePane.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartLabelStylePane.java index 29c73aedbe..8892b0d0d4 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartLabelStylePane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartLabelStylePane.java @@ -39,7 +39,7 @@ public class ChartLabelStylePane extends AbstractChartStylePane { @Override public Dimension getPreferredSize() { - return new Dimension(-1, FineUIScale.scale(100)); + return new Dimension(super.getPreferredSize().width, FineUIScale.scale(100)); } }; initListener();