Browse Source

REPORT-55549 【组件背景分离】组件复用-组件设置主体背景时,标题处在设计画布里显示了背景效果,但web预览没显示效果

【问题原因】
主体背景的生效范围暂时保持原样,不作用于与包含标题区域的整体范围内.
与前端实现保持一致
【改动思路】
临时注释设计器端带标题容器的背景效果
final/10.0
Starryi 3 years ago
parent
commit
de124d121b
  1. 15
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

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

@ -194,13 +194,14 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
titleCreator.setBorder(new BottomLineBorder(color, thickness)); titleCreator.setBorder(new BottomLineBorder(color, thickness));
} }
if (bodyXCreator instanceof XBorderStyleWidgetCreator) { // 主体背景的生效范围暂时保持原样,不作用于包含标题区域的整体范围内
XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator; // if (bodyXCreator instanceof XBorderStyleWidgetCreator) {
Background background4Painting = styledBodyXCreator.getBackground4Painting(); // XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator;
// Background background4Painting = styledBodyXCreator.getBackground4Painting();
styledBodyXCreator.setBackground4Painting(null); // body不绘制背景 //
titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景 // styledBodyXCreator.setBackground4Painting(null); // body不绘制背景
} // titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景
// }
} }
} }
} }

Loading…
Cancel
Save