Browse Source

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

feature/x
kerry 3 years ago
parent
commit
952d60a41e
  1. 23
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

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

@ -181,15 +181,20 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
}
}
private void clearTitleWidget() {
if (acceptType(XWFitLayout.class)) {
return;
}
XWTitleLayout parent = (XWTitleLayout) this.getParent();
if (parent.getComponentCount() > 1) {
parent.remove(parent.getTitleCreator());
}
}
private void clearTitleWidget() {
if (acceptType(XWFitLayout.class)) {
return;
}
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