Browse Source

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

Merge in DESIGN/design from ~KERRY/design_10.0:release/11.0 to release/11.0

* commit 'b37653b5e70f43ed23b3e4d33f800f1d083e11fc':
  REPORT-65140 报表块图表块在设计器上改变大小的时候,保存在 xml 里面的 elementcaseEdito 的尺寸依然是初始尺寸
bugfix/11.0
kerry 2 years ago
parent
commit
10d4e9eb0a
  1. 7
      designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java

7
designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java

@ -764,6 +764,7 @@ public class XWFitLayout extends XLayoutContainer {
creator.setBackupBound(creator.getBounds()); creator.setBackupBound(creator.getBounds());
} }
} }
LayoutUtils.layoutContainer(this);
} }
private Rectangle recalculateWidgetBounds(Rectangle rec, int[] hors, int[] veris) { private Rectangle recalculateWidgetBounds(Rectangle rec, int[] hors, int[] veris) {
@ -831,11 +832,7 @@ public class XWFitLayout extends XLayoutContainer {
this.remove(oldCreator); this.remove(oldCreator);
this.add(newCreator); this.add(newCreator);
dealDirections(newCreator, false); dealDirections(newCreator, false);
//对于新增的绝对布局的组件,需要更新下内部组件的大小 this.updateBoundsWidget();
if (newCreator.acceptType(XWAbsoluteLayout.class)){
((XWAbsoluteLayout) newCreator).updateBoundsWidget();
newCreator.setBackupBound(newCreator.getBounds());
}
isRefreshing = false; isRefreshing = false;
LayoutUtils.layoutContainer(this); LayoutUtils.layoutContainer(this);
} }

Loading…
Cancel
Save