Skip to content
Snippets Groups Projects
Commit 80664a03 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Remove definition of width and height.

Add the autoHeight configuration parameters.
parent 9c404bda
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ App.EntryForm = Ext.extend(Ext.FormPanel, { ...@@ -19,6 +19,7 @@ App.EntryForm = Ext.extend(Ext.FormPanel, {
initComponent: function(){ initComponent: function(){
Ext.apply(this, { Ext.apply(this, {
autoHeight: true,
bodyStyle: 'padding:5px 5px 0', bodyStyle: 'padding:5px 5px 0',
buttonAlign: 'center', buttonAlign: 'center',
buttons: [{text: 'clear'}, {text: this.action}], buttons: [{text: 'clear'}, {text: this.action}],
...@@ -26,7 +27,6 @@ App.EntryForm = Ext.extend(Ext.FormPanel, { ...@@ -26,7 +27,6 @@ App.EntryForm = Ext.extend(Ext.FormPanel, {
defaultType: 'textfield', defaultType: 'textfield',
frame: true, frame: true,
labelWidth: 75, labelWidth: 75,
width: 350
}); });
App.EntryForm.superclass.initComponent.apply(this, arguments); App.EntryForm.superclass.initComponent.apply(this, arguments);
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
* @param {winCfg} winCfg (optional) window configuration for create/update operation * @param {winCfg} winCfg (optional) window configuration for create/update operation
* *
* @version $Id$ * @version $Id$
*
* TODO: add refresh in the context menu
*
*/ */
App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, { App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, {
...@@ -47,10 +50,9 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, { ...@@ -47,10 +50,9 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, {
Ext.apply(this, { Ext.apply(this, {
frame: true, frame: true,
height: 300,
iconCls: 'icon-grid', iconCls: 'icon-grid',
viewConfig: {forceFit: true}, viewConfig: {forceFit: true},
width: 600, autoHeight: true,
}); });
...@@ -201,6 +203,13 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, { ...@@ -201,6 +203,13 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, {
} }
}, },
// /**
// *
// */
// onRender: function(){
// App.ViewEditGrid.superclass.onRender.apply(this, arguments);
// this.getStore().load();
// },
/** /**
* Handler to update select items in the database * Handler to update select items in the database
*/ */
...@@ -275,4 +284,6 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, { ...@@ -275,4 +284,6 @@ App.ViewEditGrid = Ext.extend(Ext.grid.GridPanel, {
return win; return win;
} }
}); });
\ No newline at end of file
Ext.reg('viewedit', App.ViewEditGrid);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment