Mercurial > lada > lada-client
comparison app/view/proben/Create.js @ 505:5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 12 Dec 2014 12:19:49 +0100 |
parents | c1b77fb96b01 |
children | 91a1a88ee353 |
comparison
equal
deleted
inserted
replaced
504:44e054626bdd | 505:5d958fb1dd26 |
---|---|
16 requires: [ | 16 requires: [ |
17 'Lada.view.proben.CreateForm' | 17 'Lada.view.proben.CreateForm' |
18 ], | 18 ], |
19 | 19 |
20 title: 'Maske für §3-Proben', | 20 title: 'Maske für §3-Proben', |
21 // Make size of the dialog dependend of the available space. | |
22 // TODO: Handle resizing the browser window. | |
23 autoShow: true, | 21 autoShow: true, |
24 autoScroll: true, | 22 autoScroll: true, |
25 modal: true, | 23 modal: true, |
24 layout: 'fit', | |
26 | 25 |
27 initComponent: function() { | 26 initComponent: function() { |
28 this.buttons = [{ | 27 this.buttons = [{ |
29 text: 'Speichern', | 28 text: 'Speichern', |
30 action: 'save' | 29 action: 'save' |
31 }, { | 30 }, { |
32 text: 'Abbrechen', | 31 text: 'Abbrechen', |
33 scope: this, | 32 scope: this, |
34 handler: this.close | 33 handler: this.close |
35 }]; | 34 }]; |
36 this.width = Ext.getBody().getViewSize().width - 30; | 35 this.width = 700; |
37 this.height = Ext.getBody().getViewSize().height - 30; | |
38 var form = Ext.create('Lada.view.proben.CreateForm'); | 36 var form = Ext.create('Lada.view.proben.CreateForm'); |
39 this.items = [form]; | 37 this.items = [{ |
38 border: 0, | |
39 autoScroll: true, | |
40 items: [form] | |
41 }]; | |
40 this.callParent(arguments); | 42 this.callParent(arguments); |
41 } | 43 } |
42 }); | 44 }); |