Browse Source

Merge pull request #8021 in DESIGN/design from final/11.0 to release/11.0

* commit 'c500730beea9f35d83dedee4c10410ca38738e1e':
  REPORT-67095【新老自适应配置面板修改】老模式-PC端自适应属性选跟随服务器,服务器报表块选“默认”,此时设计画布里的报表块右侧设置面板即提示了“已选择默认自适应方式”,又有Pc浏览器自适应设置项,且web预览的效果看起来是符合Pc浏览器自适应设置的
bugfix/11.0
superman 3 years ago
parent
commit
a24c86b434
  1. 4
      designer-form/src/main/java/com/fr/design/designer/creator/XElementCase.java

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

@ -20,6 +20,7 @@ import com.fr.form.FormProvider;
import com.fr.form.ui.ElementCaseEditor; import com.fr.form.ui.ElementCaseEditor;
import com.fr.form.ui.ElementCaseEditorProvider; import com.fr.form.ui.ElementCaseEditorProvider;
import com.fr.report.fit.ReportFitAttr; import com.fr.report.fit.ReportFitAttr;
import com.fr.report.fit.ReportFitConfig;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import com.fr.stable.CoreGraphHelper; import com.fr.stable.CoreGraphHelper;
import com.fr.stable.core.PropertyChangeAdapter; import com.fr.stable.core.PropertyChangeAdapter;
@ -127,7 +128,8 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
private CRPropertyDescriptor getReportFitEditor() { private CRPropertyDescriptor getReportFitEditor() {
this.designer = WidgetPropertyPane.getInstance().getEditingFormDesigner(); this.designer = WidgetPropertyPane.getInstance().getEditingFormDesigner();
FitProvider wbTpl = designer.getTarget(); FitProvider wbTpl = designer.getTarget();
ReportFitAttr fitAttr = wbTpl.getReportFitAttr(); //这边获取到的全局要考虑到服务器的配置
ReportFitAttr fitAttr = wbTpl.getReportFitAttr() == null ? ReportFitConfig.getInstance().getFrmFitAttr() : wbTpl.getReportFitAttr();
ElementCaseEditor editor = this.toData(); ElementCaseEditor editor = this.toData();
//兼容之前报表块(之前三个选项为:默认 横向 双向 现在是:横向 双向 不自适应) //兼容之前报表块(之前三个选项为:默认 横向 双向 现在是:横向 双向 不自适应)
if (editor.getFitStateInPC() == 0) { if (editor.getFitStateInPC() == 0) {

Loading…
Cancel
Save