From c2f8de346440b31521a4620abad848f3e520ecc2 Mon Sep 17 00:00:00 2001 From: renekton Date: Wed, 23 Oct 2024 17:03:50 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-138355=E3=80=90fr-fbp=E5=86=92=E7=83=9F?= =?UTF-8?q?=E3=80=91=E6=A0=87=E7=AD=BE=E5=AF=8C=E6=96=87=E6=9C=AC=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E9=A2=9C=E8=89=B2=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/component/richText/VanChartRichTextPane.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java index e4e4745d30..7383f9c9e6 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichTextPane.java @@ -13,6 +13,8 @@ import javax.swing.JScrollPane; import java.awt.BorderLayout; import java.awt.Dimension; +import static com.fine.theme.utils.FineUIScale.scale; + // 标签提示中的富文本面板,包含字段设置和富文本编辑器 public class VanChartRichTextPane extends BasicBeanPane { @@ -48,13 +50,13 @@ public class VanChartRichTextPane extends BasicBeanPane { fieldListContent.add(fieldListPane, BorderLayout.NORTH); JScrollPane fieldListScrollPane = new JScrollPane(fieldListContent); - fieldListScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); + fieldListScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); fieldListScrollPane.setHorizontalScrollBar(null); fieldListScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Add_Field"))); // 字段格式和汇总 JScrollPane fieldAttrScrollPane = new JScrollPane(fieldAttrPane); - fieldAttrScrollPane.setPreferredSize(new Dimension(FIELD_PANE_W, FIELD_PANE_H)); + fieldAttrScrollPane.setPreferredSize(scale(new Dimension(FIELD_PANE_W, FIELD_PANE_H))); fieldAttrScrollPane.setBorder(BorderFactory.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Field_Setting"))); fieldPane.add(fieldListScrollPane); @@ -71,7 +73,7 @@ public class VanChartRichTextPane extends BasicBeanPane { JPanel richEditorPane = new JPanel(); richEditorPane.setLayout(new BorderLayout()); - richEditorPane.setPreferredSize(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H)); + richEditorPane.setPreferredSize(scale(new Dimension(RICH_EDITOR_W, RICH_EDITOR_H))); richEditorPane.add(richEditor, BorderLayout.CENTER); return richEditorPane;