commit 07896bd504bf9926fec69cd33143c8c12125b52d
parent 66e1391e67dd09bdd1a5550f9d8f9faced5b6a5a
Author: Felicitus <felicitus@felicitus.org>
Date: Fri, 25 May 2012 05:18:27 +0200
Additional fix to consider "create" mode - relates to issue #199
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/frontend/js/Components/Part/Editor/PartEditor.js b/src/frontend/js/Components/Part/Editor/PartEditor.js
@@ -18,6 +18,8 @@ Ext.define('PartKeepr.PartEditor', {
* Initializes the editor fields
*/
initComponent: function () {
+ // Defines the overall height of all fields, used to calculate the anchoring for the description field
+ var overallHeight = (this.partMode == "create") ? '-280' : '-215';
this.nameField = Ext.create("Ext.form.field.Text", {
name: 'name',
@@ -141,7 +143,7 @@ Ext.define('PartKeepr.PartEditor', {
xtype: 'textarea',
fieldLabel: i18n("Comment"),
name: 'comment',
- anchor: '100% -220'
+ anchor: '100% ' + overallHeight
},
{
xtype: 'fieldcontainer',
diff --git a/src/frontend/js/Components/Part/Editor/PartEditorWindow.js b/src/frontend/js/Components/Part/Editor/PartEditorWindow.js
@@ -37,7 +37,8 @@ Ext.define('PartKeepr.PartEditorWindow', {
/* If the edit mode is "create", we need to enlarge the window a bit to fit the fields without scrolling */
if (this.partMode && this.partMode == "create") {
- this.height = 460;
+ this.height = 500;
+ this.minHeight = 500;
}
this.items = [ this.editor ];