diff app/view/messungen/Edit.js @ 479:d00cc841a876

Set size on initialize in windows.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 21 Jan 2014 15:08:53 +0100
parents debfcc7713e3
children 850ccfe5f3c4
line wrap: on
line diff
--- a/app/view/messungen/Edit.js	Tue Jan 21 15:08:08 2014 +0100
+++ b/app/view/messungen/Edit.js	Tue Jan 21 15:08:53 2014 +0100
@@ -14,8 +14,6 @@
     alias: 'widget.messungenedit',
 
     title: 'Maske für Messungen',
-    width: Ext.getBody().getViewSize().width - 30,
-    height: Ext.getBody().getViewSize().height - 30,
     autoShow: true,
     autoScroll: true,
     modal: true,
@@ -36,6 +34,8 @@
                 handler: this.close
             }
         ];
+        this.width = Ext.getBody().getViewSize().width - 30;
+        this.height = Ext.getBody().getViewSize().height - 30;
         var form = Ext.create('Lada.view.messungen.EditForm', this.initialConfig);
         this.items = [form];
         this.callParent();

http://lada.wald.intevation.org