Browse Source

Merge pull request #4233 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit '5f29061532ade4bd5bd5ba8274e57af00d64e9bf':
  REPORT-51830 tab里报表块设置图片背景,复制粘贴得到的tab里的报表块预览时没有背景了,设计器里看是有图片背景的。0228也有此现象。
feature/10.0
superman 4 years ago
parent
commit
4bad506c42
  1. 2
      designer-form/src/main/java/com/fr/design/designer/beans/adapters/layout/FRAbsoluteLayoutAdapter.java

2
designer-form/src/main/java/com/fr/design/designer/beans/adapters/layout/FRAbsoluteLayoutAdapter.java

@ -235,6 +235,8 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter {
} else { } else {
container.add(creator, creator.toData().getWidgetName(),0); container.add(creator, creator.toData().getWidgetName(),0);
} }
//这边将组件添加到container后,需要做下layout处理,否则其内部的一些组件的宽高可能为0,从而导致在updateChildBounds的时候出现问题
LayoutUtils.layoutRootContainer(creator);
XWAbsoluteLayout layout = (XWAbsoluteLayout) container; XWAbsoluteLayout layout = (XWAbsoluteLayout) container;
layout.updateBoundsWidget(creator); layout.updateBoundsWidget(creator);
updateCreatorBackBound(); updateCreatorBackBound();

Loading…
Cancel
Save