Browse Source

Merge pull request #4235 in DESIGN/design from feature/10.0 to feature/x

* commit '4bad506c42586db72b021cdc71062408f2b6294b':
  REPORT-51830 tab里报表块设置图片背景,复制粘贴得到的tab里的报表块预览时没有背景了,设计器里看是有图片背景的。0228也有此现象。
research/11.0
superman 4 years ago
parent
commit
a9934e213d
  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 {
container.add(creator, creator.toData().getWidgetName(),0);
}
//这边将组件添加到container后,需要做下layout处理,否则其内部的一些组件的宽高可能为0,从而导致在updateChildBounds的时候出现问题
LayoutUtils.layoutRootContainer(creator);
XWAbsoluteLayout layout = (XWAbsoluteLayout) container;
layout.updateBoundsWidget(creator);
updateCreatorBackBound();

Loading…
Cancel
Save