[Lada-commits] [PATCH 3 of 3] Set size on initialize in windows

Wald Commits scm-commit at wald.intevation.org
Tue Jan 21 15:09:00 CET 2014


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1390313333 -3600
# Node ID d00cc841a876fcc11beb730c9964cf0ec46f804e
# Parent  a07cf685606ce897848afcfdcb09a67f81dbd7da
Set size on initialize in windows.

diff -r a07cf685606c -r d00cc841a876 app/view/messungen/Create.js
--- 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();
diff -r a07cf685606c -r d00cc841a876 app/view/messungen/Edit.js
--- 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();
diff -r a07cf685606c -r d00cc841a876 app/view/proben/Create.js
--- 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();
diff -r a07cf685606c -r d00cc841a876 app/view/proben/Edit.js
--- 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.


More information about the Lada-commits mailing list