From ba0d7751751b22a01d7b78fe5ef855eb153e037c Mon Sep 17 00:00:00 2001 From: Starryi Date: Tue, 28 Dec 2021 16:07:38 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-65072=20=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E8=BE=B9=E6=A1=86=E3=80=91=E5=8D=95=E5=85=83=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E9=A2=84=E8=A7=88=E5=B0=8F=E5=9B=BE=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=86=85=E9=83=A8=E8=BE=B9=E6=A1=86=E7=BA=BF=E7=9C=8B?= =?UTF-8?q?=E7=9D=80=E6=AF=94=E8=BE=83=E7=B2=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 外边框因为画布被裁剪的原因看起来较细导致 【改动思路】 关闭默认的裁剪行为 --- .../src/main/java/com/fr/design/cell/CellStylePreviewPane.java | 1 + .../theme/preview/ecpreview/cell/AbstractPreviewCell.java | 1 + 2 files changed, 2 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java b/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java index dc888b1c1..f90c78d87 100644 --- a/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java +++ b/designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java @@ -133,6 +133,7 @@ public class CellStylePreviewPane extends JPanel { Style.paintContent(g2d, paintText, style, width, height, resolution); + g2d.setClip(null); Style.paintBorder(g2d, style, width, height); } diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/preview/ecpreview/cell/AbstractPreviewCell.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/preview/ecpreview/cell/AbstractPreviewCell.java index fdd4dd3ca..cfecccd61 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/preview/ecpreview/cell/AbstractPreviewCell.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/preview/ecpreview/cell/AbstractPreviewCell.java @@ -40,6 +40,7 @@ public abstract class AbstractPreviewCell extends JComponent { if (style.getBorderBottom() == Constants.LINE_SLIM || style.getBorderTop() == Constants.LINE_SLIM) { height -= BORDER_INSET; } + g2d.setClip(null); Style.paintBorder(g2d, style, width, height); }