disable the override to formlayout for the time being

This commit is contained in:
Damien Churchill 2010-01-23 15:34:50 +00:00
commit 031f75a2bb

View file

@ -1027,36 +1027,36 @@ Ext.reg('uxspinnergroup', Ext.ux.form.SpinnerGroup);
// Taken from http://extjs.com/forum/showthread.php?t=75273 // Taken from http://extjs.com/forum/showthread.php?t=75273
// remove spaces for hidden elements and make show(), hide(), enable() and disable() act on the label. don't use hideLabel with this // remove spaces for hidden elements and make show(), hide(), enable() and disable() act on the label. don't use hideLabel with this
Ext.override(Ext.layout.FormLayout, { //Ext.override(Ext.layout.FormLayout, {
renderItem: function(c, position, target) { // renderItem: function(c, position, target) {
if (c && !c.rendered && c.isFormField && c.inputType != 'hidden') { // if (c && !c.rendered && c.isFormField && c.inputType != 'hidden') {
var args = [ // var args = [
c.id, c.fieldLabel, // c.id, c.fieldLabel,
c.labelStyle||this.labelStyle||'', // c.labelStyle||this.labelStyle||'',
this.elementStyle||'', // this.elementStyle||'',
typeof c.labelSeparator == 'undefined' ? this.labelSeparator : c.labelSeparator, // typeof c.labelSeparator == 'undefined' ? this.labelSeparator : c.labelSeparator,
(c.itemCls||this.container.itemCls||'') + (c.hideLabel ? ' x-hide-label' : ''), // (c.itemCls||this.container.itemCls||'') + (c.hideLabel ? ' x-hide-label' : ''),
c.clearCls || 'x-form-clear-left' // c.clearCls || 'x-form-clear-left'
]; // ];
if(typeof position == 'number') { // if(typeof position == 'number') {
position = target.dom.childNodes[position] || null; // position = target.dom.childNodes[position] || null;
} // }
if (position) { // if (position) {
c.formItem = this.fieldTpl.insertBefore(position, args, true); // c.formItem = this.fieldTpl.insertBefore(position, args, true);
} // }
else { // else {
c.formItem = this.fieldTpl.append(target, args, true); // c.formItem = this.fieldTpl.append(target, args, true);
} // }
c.actionMode = 'formItem'; // c.actionMode = 'formItem';
c.render('x-form-el-'+c.id); // c.render('x-form-el-'+c.id);
c.container = c.formItem; // c.container = c.formItem;
c.actionMode = 'container'; // c.actionMode = 'container';
} // }
else { // else {
Ext.layout.FormLayout.superclass.renderItem.apply(this, arguments); // Ext.layout.FormLayout.superclass.renderItem.apply(this, arguments);
} // }
} // }
}); //});
Ext.override(Ext.form.TriggerField, { Ext.override(Ext.form.TriggerField, {
actionMode: 'wrap', actionMode: 'wrap',
onShow: Ext.form.TriggerField.superclass.onShow, onShow: Ext.form.TriggerField.superclass.onShow,