From 027b84bf62fd27182aaf592b9f8834adbc186943 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 10 Dec 2021 09:48:50 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-63505=20=E8=A7=A3=E5=86=B310.0=E5=90=881?= =?UTF-8?q?1.0=E5=AF=BC=E8=87=B4=E7=9A=84=E9=80=BB=E8=BE=91=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/share/action/CreateComponentAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java b/designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java index 3d4c066dd3..d1923c1dfe 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java @@ -35,7 +35,6 @@ import com.fr.form.ui.ChartEditor; import com.fr.form.ui.DataControl; import com.fr.form.ui.DictionaryContainer; import com.fr.form.ui.ElementCaseEditor; -import com.fr.form.ui.PaddingMargin; import com.fr.form.ui.Widget; import com.fr.general.IOUtils; import com.fr.log.FineLoggerFactory; @@ -62,6 +61,7 @@ import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; +import java.awt.Insets; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.image.BufferedImage; @@ -273,7 +273,7 @@ public class CreateComponentAction extends UpdateAction { XChartEditor chartEditor = (XChartEditor) body; Dimension size = chartEditor.getSize(); BufferedImage chartImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB); - PaddingMargin margin = chartEditor.toData().getMargin(); + Insets margin = chartEditor.getInsets();; chartEditor.getDesignerEditor().paintEditor(chartImage.getGraphics(), size, margin); im.getGraphics().drawImage(chartImage, 0, chartEditor.getY(), null); }