diff app/view/proben/Create.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/proben/Create.js	Tue Jan 21 15:08:08 2014 +0100
+++ b/app/view/proben/Create.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,
@@ -33,6 +31,8 @@
                 handler: this.close
             }
         ];
+        this.width = Ext.getBody().getViewSize().width - 30;
+        this.height = Ext.getBody().getViewSize().height - 30;
         var form = Ext.create('Lada.view.proben.CreateForm');
         this.items = [form];
         this.callParent();

http://lada.wald.intevation.org