adresses #2257
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / ui / forms / AbstractCdmEntityWizardPage.java
index 78b3f900945174426ef7a78fb08d149d48a2561d..2a67ad4701889e96e4184a45b1ee65d1d2f4e20a 100644 (file)
@@ -71,12 +71,11 @@ public abstract class AbstractCdmEntityWizardPage<T> extends WizardPage implemen
         */
        /** {@inheritDoc} */
        public void createControl(Composite parent) {
-               ScrolledForm scrolledForm = formFactory.createScrolledForm(parent);
-               GridLayout layout = new GridLayout();           
-               scrolledForm.getBody().setLayout(layout);
+               ScrolledForm scrolledForm = formFactory.createScrolledForm(parent);             
+               scrolledForm.getBody().setLayout(CdmFormFactory.LAYOUT());
                
                Composite control = formFactory.createComposite(scrolledForm.getBody());
-               control.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+               control.setLayoutData(CdmFormFactory.FILL());
                
                control.setLayout(CdmFormFactory.LAYOUT(2, false));
                WizardPageRootElement rootElement = new WizardPageRootElement(formFactory, control, getConversationHolder());