diff app/controller/form/Ortszuordnung.js @ 1293:16a80ca16732

map feature visibility, selection and grid layout messpunkt layer is now visible per default when in editing mode on selection in map, the form is updated ortszuordnung buttons should not render over grid anymore
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 01 Feb 2017 19:38:06 +0100
parents e9f812528324
children 171eacf989d8
line wrap: on
line diff
--- a/app/controller/form/Ortszuordnung.js	Wed Feb 01 18:54:31 2017 +0100
+++ b/app/controller/form/Ortszuordnung.js	Wed Feb 01 19:38:06 2017 +0100
@@ -123,21 +123,26 @@
         var osg = win.down('ortstammdatengrid');
         var oForm = button.up('form');
         osg.addListener('select',oForm.setOrt, oForm);
+        var map = win.down('map');
         if (pressed) {
             win.setHeight(Ext.getBody().getViewSize().height - 50);
             button.setText(i18n.getMsg('ortszuordnung.form.setOrt.pressed'));
+            map.featureLayer.setVisibility(true);
             win.setY(25);
             gridPanel.show();
+            win.doLayout();
             osg.addListener('select',oForm.setOrt, oForm);
 
         }
         else {
-            var y = (Ext.getBody().getViewSize().height - 465) / 2
+            map.featureLayer.setVisibility(false);
+            var y = (Ext.getBody().getViewSize().height - 465) / 2;
             win.setHeight(465);
             win.setY(y);
             button.setText(i18n.getMsg('ortszuordnung.form.setOrt'));
             gridPanel.hide();
             osg.removeListener('select',oForm.setOrt, oForm);
+            oForm.doLayout();
         }
     },
 

http://lada.wald.intevation.org