comparison 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
comparison
equal deleted inserted replaced
478:a07cf685606c 479:d00cc841a876
14 alias: 'widget.probenedit', 14 alias: 'widget.probenedit',
15 15
16 title: 'Maske für §3-Proben', 16 title: 'Maske für §3-Proben',
17 // Make size of the dialog dependend of the available space. 17 // Make size of the dialog dependend of the available space.
18 // TODO: Handle resizing the browser window. 18 // TODO: Handle resizing the browser window.
19 width: Ext.getBody().getViewSize().width - 30,
20 height: Ext.getBody().getViewSize().height - 30,
21 autoShow: true, 19 autoShow: true,
22 autoScroll: true, 20 autoScroll: true,
23 modal: true, 21 modal: true,
24 22
25 initComponent: function() { 23 initComponent: function() {
32 text: 'Abbrechen', 30 text: 'Abbrechen',
33 scope: this, 31 scope: this,
34 handler: this.close 32 handler: this.close
35 } 33 }
36 ]; 34 ];
35 this.width = Ext.getBody().getViewSize().width - 30;
36 this.height = Ext.getBody().getViewSize().height - 30;
37 // InitialConfig is the config object passed to the constructor on 37 // InitialConfig is the config object passed to the constructor on
38 // creation of this window. We need to pass it throuh to the form as 38 // creation of this window. We need to pass it throuh to the form as
39 // we need the "modelId" param to load the correct item. 39 // we need the "modelId" param to load the correct item.
40 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig); 40 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig);
41 this.items = [form]; 41 this.items = [form];

http://lada.wald.intevation.org