Improve GIS
[lgpl/argeo-commons.git] / gis / plugins / org.argeo.gis.ui / src / main / java / org / argeo / gis / ui / editors / MapFormPage.java
index 5c454d2c9d9531551fe46a96ab3f1eeb6fce0f13..e6b5984f7c23d4f366cbd2e0f974da688059596e 100644 (file)
@@ -9,6 +9,7 @@ import org.argeo.gis.ui.MapViewer;
 import org.argeo.gis.ui.MapViewerListener;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.ui.forms.AbstractFormPart;
@@ -45,6 +46,8 @@ public class MapFormPage extends FormPage {
                layout.marginWidth = 0;
                mapArea.setLayout(layout);
                mapViewer = mapControlCreator.createMapControl(context, mapArea);
+               mapViewer.getControl().setLayoutData(
+                               new GridData(SWT.FILL, SWT.FILL, true, true));
 
                // form part
                MapFormPart mapFormPart = new MapFormPart();