Introduce tight integration with JavaScript classes
[gpl/argeo-suite.git] / swt / org.argeo.app.swt / src / org / argeo / app / swt / ux / DefaultEditionLayer.java
index 109dd22d4ffe88188887ff25369b3eea7688ff52..549062f715739ffd43672878dbb6ae16e8b1b8d8 100644 (file)
@@ -16,6 +16,7 @@ import org.argeo.cms.swt.acr.SwtUiProvider;
 import org.argeo.cms.util.LangUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.SashForm;
+import org.eclipse.swt.layout.FillLayout;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
@@ -59,6 +60,8 @@ public class DefaultEditionLayer implements SwtAppLayer {
                } else {
                        if (this.workArea != null) {
                                Composite area = new Composite(parent, SWT.NONE);
+                               // we set fill layout by default but it can be overridden
+                               area.setLayout(new FillLayout());
                                this.workArea.createUiPart(area, context);
                                return area;
                        }