|
|
|
@ -1010,15 +1010,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshCenter(Widget centerWidget, XLayoutContainer formLayoutContainer) { |
|
|
|
|
// 不存在center块, 说明是新建的模板
|
|
|
|
|
if (centerWidget == null) { |
|
|
|
|
XLayoutContainer layoutContainer = (XLayoutContainer) XCreatorUtils.createXCreator(new WFitLayout("body")); |
|
|
|
|
layoutContainer.setSize(LARGE_PREFERRED_SIZE); |
|
|
|
|
setRootComponent(layoutContainer); |
|
|
|
|
formLayoutContainer.add(rootComponent, WBorderLayout.CENTER); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 不存在center块, 说明是新建的模板(fanglei:大人,时代变了)
|
|
|
|
|
XLayoutContainer centerContainer = (XLayoutContainer) XCreatorUtils.createXCreator(centerWidget); |
|
|
|
|
Dimension d = new Dimension(); |
|
|
|
|
d.width = ((WFitLayout) centerWidget).getContainerWidth(); |
|
|
|
|