Browse Source

REPORT-38529 && REPORT-38527

research/11.0
hades 4 years ago
parent
commit
d91768f8ff
  1. 3
      designer-form/src/main/java/com/fr/design/form/util/FormDesignerUtils.java

3
designer-form/src/main/java/com/fr/design/form/util/FormDesignerUtils.java

@ -1,5 +1,6 @@
package com.fr.design.form.util; package com.fr.design.form.util;
import com.fr.design.designer.creator.XWFitLayout;
import com.fr.design.file.HistoryTemplateListCache; import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.mainframe.FormDesigner; import com.fr.design.mainframe.FormDesigner;
import com.fr.design.mainframe.JTemplate; import com.fr.design.mainframe.JTemplate;
@ -17,7 +18,7 @@ public class FormDesignerUtils {
* @return * @return
*/ */
public static boolean isAppRelayout(FormDesigner designer) { public static boolean isAppRelayout(FormDesigner designer) {
if (!designer.getRootComponent().acceptType(WFitLayout.class)) { if (!designer.getRootComponent().acceptType(XWFitLayout.class)) {
return false; return false;
} }
return ((WFitLayout) designer.getRootComponent().toData()).isAppRelayout(); return ((WFitLayout) designer.getRootComponent().toData()).isAppRelayout();

Loading…
Cancel
Save