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. 5
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

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

@ -188,6 +188,11 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
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