diff --git a/designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java b/designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java index 2c64976690..3882bbb44c 100644 --- a/designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java +++ b/designer-form/src/main/java/com/fr/design/widget/ui/designer/layout/FRFitLayoutDefinePane.java @@ -173,6 +173,9 @@ public class FRFitLayoutDefinePane extends AbstractDataModify { if (value instanceof Integer) { state = (Integer) value; } + //todo 验证下 + layout.setLayoutType(WBodyLayoutType.parse(state)); + layout.setCompState(adaptComboBox.getSelectedIndex()); try { if (state == WBodyLayoutType.ABSOLUTE.getTypeValue()) { WAbsoluteBodyLayout wAbsoluteBodyLayout = new WAbsoluteBodyLayout("body"); @@ -201,9 +204,6 @@ public class FRFitLayoutDefinePane extends AbstractDataModify { FineLoggerFactory.getLogger().error(e.getMessage()); } - //todo 验证下 - layout.setLayoutType(WBodyLayoutType.parse(state)); - layout.setCompState(adaptComboBox.getSelectedIndex()); int intervelValue = (int)componentIntervel.getValue(); if (xWFitLayout.canAddInterval(intervelValue)) {