Browse Source

Pull request #7350: KERNEL-9651 报表块图表块在设计器上改变大小的时候,保存在 xml 里面的 elementcaseEdito 的尺寸依然是初始尺寸

Merge in DESIGN/design from ~KERRY/design_10.0:feature/x to feature/x

* commit '952d60a41efd3cbd7167d1a0fe3b51321fc26dee':
  KERNEL-9651 报表块图表块在设计器上改变大小的时候,保存在 xml 里面的 elementcaseEdito 的尺寸依然是初始尺寸
feature/x
kerry 3 years ago
parent
commit
3d2309bec7
  1. 25
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

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

@ -180,16 +180,21 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
this.setBackground4Painting(null, 0.0); this.setBackground4Painting(null, 0.0);
} }
} }
private void clearTitleWidget() { private void clearTitleWidget() {
if (acceptType(XWFitLayout.class)) { if (acceptType(XWFitLayout.class)) {
return; return;
} }
XWTitleLayout parent = (XWTitleLayout) this.getParent(); XWTitleLayout parent = (XWTitleLayout) this.getParent();
if (parent.getComponentCount() > 1) { if (parent.getComponentCount() > 1) {
parent.remove(parent.getTitleCreator()); parent.remove(parent.getTitleCreator());
} WTitleLayout layout = parent.toData();
} Rectangle rec = new Rectangle(layout.getBodyBoundsWidget().getBounds());
//删除标题组件后,容器高度为body高度+标题组件的高度
rec.height += WTitleLayout.TITLE_HEIGHT;
layout.updateChildBounds(rec);
}
}
/** /**
* 设置样式为标题样式时对应组件加上标题 * 设置样式为标题样式时对应组件加上标题

Loading…
Cancel
Save