comparison app/view/messungen/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
comparison
equal deleted inserted replaced
478:a07cf685606c 479:d00cc841a876
12 Ext.define('Lada.view.messungen.Create', { 12 Ext.define('Lada.view.messungen.Create', {
13 extend: 'Ext.window.Window', 13 extend: 'Ext.window.Window',
14 alias: 'widget.messungencreate', 14 alias: 'widget.messungencreate',
15 15
16 title: 'Maske für Messungen', 16 title: 'Maske für Messungen',
17 //width: Ext.getBody().getViewSize().width - 30,
18 //height: Ext.getBody().getViewSize().height - 30,
19 autoShow: true, 17 autoShow: true,
20 autoScroll: true, 18 autoScroll: true,
21 modal: true, 19 modal: true,
22 20
23 requires: [ 21 requires: [
34 text: 'Abbrechen', 32 text: 'Abbrechen',
35 scope: this, 33 scope: this,
36 handler: this.close 34 handler: this.close
37 } 35 }
38 ]; 36 ];
37 this.width = Ext.getBody().getViewSize().width - 30;
38 this.height = Ext.getBody().getViewSize().height - 30;
39 var form = Ext.create('Lada.view.messungen.CreateForm', this.initialConfig); 39 var form = Ext.create('Lada.view.messungen.CreateForm', this.initialConfig);
40 this.items = [form]; 40 this.items = [form];
41 this.callParent(); 41 this.callParent();
42 } 42 }
43 }); 43 });

http://lada.wald.intevation.org