Browse Source

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

Merge in DESIGN/design from ~STARRYI/design:bug-final/10.0 to final/10.0

* commit 'de124d121be31b9c927479e0d2e17314c776c4ed':
  REPORT-55549 【组件背景分离】组件复用-组件设置主体背景时,标题处在设计画布里显示了背景效果,但web预览没显示效果
final/10.0
Kara 3 years ago
parent
commit
2149929cae
  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));
}
if (bodyXCreator instanceof XBorderStyleWidgetCreator) {
XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator;
Background background4Painting = styledBodyXCreator.getBackground4Painting();
styledBodyXCreator.setBackground4Painting(null); // body不绘制背景
titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景
}
// 主体背景的生效范围暂时保持原样,不作用于包含标题区域的整体范围内
// if (bodyXCreator instanceof XBorderStyleWidgetCreator) {
// XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator;
// Background background4Painting = styledBodyXCreator.getBackground4Painting();
//
// styledBodyXCreator.setBackground4Painting(null); // body不绘制背景
// titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景
// }
}
}
}

Loading…
Cancel
Save