Browse Source

REPORT-10591 自适应插件内置 设计器部分

research/10.0
XiaXiang 6 years ago
parent
commit
d29f62101d
  1. 6
      designer-form/src/main/java/com/fr/design/designer/creator/XElementCase.java

6
designer-form/src/main/java/com/fr/design/designer/creator/XElementCase.java

@ -115,6 +115,10 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
public CRPropertyDescriptor[] getExtraTableEditor(){
CRPropertyDescriptor[] extraTableEditor = resolveCompatible();
return ArrayUtils.addAll(extraTableEditor, new CRPropertyDescriptor[] {getReportFitEditor()});
}
private CRPropertyDescriptor getReportFitEditor() {
this.designer = WidgetPropertyPane.getInstance().getEditingFormDesigner();
FitProvider wbTpl = designer.getTarget();
ReportFitAttrProvider fitAttr = wbTpl.getFitAttr();
@ -133,7 +137,7 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
if (editor.getReportFitAttr() == null) {
editor.setReportFitInPc(browserFitPropertyEditor.getFitStateInPC(fitAttr));
}
return ArrayUtils.addAll(extraTableEditor, new CRPropertyDescriptor[] {extraEditor});
return extraEditor;
}

Loading…
Cancel
Save