Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/proben/Create.js Fri Dec 12 12:18:22 2014 +0100 +++ b/app/view/proben/Create.js Fri Dec 12 12:19:49 2014 +0100 @@ -18,11 +18,10 @@ ], title: 'Maske für §3-Proben', - // Make size of the dialog dependend of the available space. - // TODO: Handle resizing the browser window. autoShow: true, autoScroll: true, modal: true, + layout: 'fit', initComponent: function() { this.buttons = [{ @@ -33,10 +32,13 @@ scope: this, handler: this.close }]; - this.width = Ext.getBody().getViewSize().width - 30; - this.height = Ext.getBody().getViewSize().height - 30; + this.width = 700; var form = Ext.create('Lada.view.proben.CreateForm'); - this.items = [form]; + this.items = [{ + border: 0, + autoScroll: true, + items: [form] + }]; this.callParent(arguments); } });