# HG changeset patch # User Torsten Irländer # Date 1369641183 -7200 # Node ID e6d5177a9f6f401f30fba2dd0dc3505c861e78d8 # Parent 39f5f1529847ee5c83fc5f9a383f44d72b4a9da1 Set size of the edit window relative to the available space in the browser. diff -r 39f5f1529847 -r e6d5177a9f6f app/view/proben/Edit.js --- 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,