Browse Source

REPORT-55669 【组件背景分离】组件复用-线型边框在设计画布里可以看到,标题和组件内容之间是有显示边框线的,但是预览时这里没有显示边框线,不符合所见即所得,这个看下预期是什么样

【问题原因】
标题栏下边框过细,在windows端不显示
【改动思路】
按照LineBorder原始内部实现,线宽size应该是thickness的两倍,所以绘制线时乘2
final/10.0
Starryi 3 years ago
parent
commit
1141caecc2
  1. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

2
designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

@ -359,7 +359,7 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setColor(getLineColor());
g2d.setStroke(new BasicStroke(getThickness()));
g2d.setStroke(new BasicStroke(getThickness() * 2));
g2d.drawLine(0, height, width, height);
g2d.setStroke(oldStroke);

Loading…
Cancel
Save