Mercurial > lada > lada-client
changeset 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 | 5a977bf18619 |
files | app/view/proben/Edit.js |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/proben/Edit.js Fri May 24 17:02:45 2013 +0200 +++ b/app/view/proben/Edit.js Mon May 27 09:53:03 2013 +0200 @@ -3,8 +3,10 @@ alias: 'widget.probenedit', title: 'Maske für §3-Proben', - width: 600, - height: 600, + // Make size of the dialog dependend of the available space. + // TODO: Handle resizing the browser window. + width: Ext.getBody().getViewSize().width - 30, + height: Ext.getBody().getViewSize().height - 30, autoShow: true, autoScroll: true, modal: true,