diff app/view/proben/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 446e99cfd425
line wrap: on
line diff
--- a/app/view/proben/Edit.js	Tue Jan 21 15:08:08 2014 +0100
+++ b/app/view/proben/Edit.js	Tue Jan 21 15:08:53 2014 +0100
@@ -16,8 +16,6 @@
     title: 'Maske für §3-Proben',
     // Make size of the dialog dependend of the available space.
     // TODO: Handle resizing the browser window.
-    width: Ext.getBody().getViewSize().width - 30,
-    height: Ext.getBody().getViewSize().height - 30,
     autoShow: true,
     autoScroll: true,
     modal: true,
@@ -34,6 +32,8 @@
                 handler: this.close
             }
         ];
+        this.width = Ext.getBody().getViewSize().width - 30;
+        this.height = Ext.getBody().getViewSize().height - 30;
         // InitialConfig is the config object passed to the constructor on
         // creation of this window. We need to pass it throuh to the form as
         // we need the "modelId" param to load the correct item.

http://lada.wald.intevation.org