comparison 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
comparison
equal deleted inserted replaced
478:a07cf685606c 479:d00cc841a876
14 alias: 'widget.probencreate', 14 alias: 'widget.probencreate',
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 initComponent: function() { 22 initComponent: function() {
25 this.buttons = [ 23 this.buttons = [
31 text: 'Abbrechen', 29 text: 'Abbrechen',
32 scope: this, 30 scope: this,
33 handler: this.close 31 handler: this.close
34 } 32 }
35 ]; 33 ];
34 this.width = Ext.getBody().getViewSize().width - 30;
35 this.height = Ext.getBody().getViewSize().height - 30;
36 var form = Ext.create('Lada.view.proben.CreateForm'); 36 var form = Ext.create('Lada.view.proben.CreateForm');
37 this.items = [form]; 37 this.items = [form];
38 this.callParent(); 38 this.callParent();
39 } 39 }
40 }); 40 });

http://lada.wald.intevation.org