changeset 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 a07cf685606c
children 3ef95496cd28
files app/view/messungen/Create.js app/view/messungen/Edit.js app/view/proben/Create.js app/view/proben/Edit.js
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/messungen/Create.js	Tue Jan 21 15:08:08 2014 +0100
+++ b/app/view/messungen/Create.js	Tue Jan 21 15:08:53 2014 +0100
@@ -14,8 +14,6 @@
     alias: 'widget.messungencreate',
 
     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.CreateForm', this.initialConfig);
         this.items = [form];
         this.callParent();
--- 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();
--- 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();
--- 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