comparison app/view/proben/Edit.js @ 47:e6d5177a9f6f

Set size of the edit window relative to the available space in the browser.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 27 May 2013 09:53:03 +0200
parents 39f5f1529847
children 792c34b3f5a9
comparison
equal deleted inserted replaced
46:39f5f1529847 47:e6d5177a9f6f
1 Ext.define('Lada.view.proben.Edit', { 1 Ext.define('Lada.view.proben.Edit', {
2 extend: 'Ext.window.Window', 2 extend: 'Ext.window.Window',
3 alias: 'widget.probenedit', 3 alias: 'widget.probenedit',
4 4
5 title: 'Maske für §3-Proben', 5 title: 'Maske für §3-Proben',
6 width: 600, 6 // Make size of the dialog dependend of the available space.
7 height: 600, 7 // TODO: Handle resizing the browser window.
8 width: Ext.getBody().getViewSize().width - 30,
9 height: Ext.getBody().getViewSize().height - 30,
8 autoShow: true, 10 autoShow: true,
9 autoScroll: true, 11 autoScroll: true,
10 modal: true, 12 modal: true,
11 13
12 requires: [ 14 requires: [

http://lada.wald.intevation.org