Browse Source

REPORT-65072 【主题边框】单元格样式的预览小图中,内部边框线看着比较粗

【问题原因】
外边框因为画布被裁剪的原因看起来较细导致

【改动思路】
关闭默认的裁剪行为
bugfix/11.0
Starryi 3 years ago
parent
commit
ba0d775175
  1. 1
      designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java
  2. 1
      designer-base/src/main/java/com/fr/design/mainframe/theme/preview/ecpreview/cell/AbstractPreviewCell.java

1
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); Style.paintContent(g2d, paintText, style, width, height, resolution);
g2d.setClip(null);
Style.paintBorder(g2d, style, width, height); Style.paintBorder(g2d, style, width, height);
} }

1
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) { if (style.getBorderBottom() == Constants.LINE_SLIM || style.getBorderTop() == Constants.LINE_SLIM) {
height -= BORDER_INSET; height -= BORDER_INSET;
} }
g2d.setClip(null);
Style.paintBorder(g2d, style, width, height); Style.paintBorder(g2d, style, width, height);
} }

Loading…
Cancel
Save