|
|
@ -36,6 +36,9 @@ public class FormDesignerUtils { |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static boolean isBodyAbsolute(FormDesigner designer) { |
|
|
|
public static boolean isBodyAbsolute(FormDesigner designer) { |
|
|
|
|
|
|
|
if (!designer.getRootComponent().acceptType(XWFitLayout.class)) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
WFitLayout root = ((WFitLayout) designer.getRootComponent().toData()); |
|
|
|
WFitLayout root = ((WFitLayout) designer.getRootComponent().toData()); |
|
|
|
return root.getBodyLayoutType() == com.fr.form.ui.container.WBodyLayoutType.ABSOLUTE; |
|
|
|
return root.getBodyLayoutType() == com.fr.form.ui.container.WBodyLayoutType.ABSOLUTE; |
|
|
|
} |
|
|
|
} |
|
|
|