From c4a9881f896408560924ca28bf7b2704c6dc702b Mon Sep 17 00:00:00 2001 From: kerry Date: Wed, 22 Dec 2021 16:12:42 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-64702=E3=80=90frm=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9=E3=80=91=E6=96=B0?= =?UTF-8?q?&=E6=97=A7=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E6=8B=96=E5=85=A5=E7=9A=84=E6=8A=A5=E8=A1=A8=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=B0=BA=E5=AF=B8=E6=98=AF250*150=EF=BC=8C?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E6=8A=A5=E8=A1=A8=E5=9D=97=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=82=AC=E6=B5=AE=E8=99=9A=E7=BA=BF=E7=9C=8B=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E5=B0=BA=E5=AF=B8=E4=B9=9F=E6=98=AF250*150=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E9=80=80=E5=87=BA=E7=BC=96=E8=BE=91=EF=BC=8C=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E8=B0=83=E6=95=B4=E6=8A=A5=E8=A1=A8=E5=9D=97=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E6=97=B6=EF=BC=8C=E8=99=9A=E7=BA=BF=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E6=AF=94=E5=88=9A=E6=89=8D=E7=9C=8B=E5=88=B0=E7=9A=84=E5=A4=A7?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/form/FormElementCaseDesigner.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java b/designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java index 5be6362a4d..9d89a7cd33 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java @@ -38,6 +38,7 @@ import com.fr.report.cell.CellElement; import com.fr.report.elementcase.TemplateElementCase; import com.fr.report.worksheet.FormElementCase; import com.fr.report.worksheet.WorkSheet; +import com.fr.stable.Constants; import javax.swing.JComponent; import javax.swing.JPanel; @@ -151,6 +152,7 @@ public class FormElementCaseDesigner Grid grid = this.elementCasePane != null ? this.elementCasePane.getGrid() : null; if (grid != null) { + resetGrid(grid); boolean oldTranslucent = grid.isTranslucent(); boolean oldShowExtraGridLine = grid.isShowExtraGridLine(); // 截缩图图时grid需支持半透明,不能用默认白色填充画布,否则会遮挡组件样式背景 @@ -168,6 +170,15 @@ public class FormElementCaseDesigner return image; } + private void resetGrid(Grid grid) { + grid.setResolution(Constants.DEFAULT_WEBWRITE_AND_SCREEN_RESOLUTION); + grid.updateUI(); + grid.setAdsorbHeight(0); + grid.setAdsorbWidth(0); + grid.setVerticalValue(0); + grid.setHorizontalValue(0); + } + /** * 刷新右侧属性面板 */