Browse Source

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

feature/x
kerry 3 years ago
parent
commit
952d60a41e
  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();
if (parent.getComponentCount() > 1) {
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