FieldHelp Plugin Issue when upgraded to EXTJS 3.4.0 from 3.3.1
FieldHelp Plugin Issue when upgraded to EXTJS 3.4.0 from 3.3.1
Animal:
When I upgraded from EXTJS 3.3.1 to 3.4.0 the text moved from under the form field to the upper right of the form field. Otherwise everything the same. I have used the FieldHelp plugin for several years and no issue with each upgrade. I am not sure what to do, any ideas?
I use the plugin code exactly as written on the first page of this forum with a sample form field as written below:
function afterFieldRender() {
if (!this.wrap) {
// this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); // extjs 3.x for from fields that are not tables
this.wrap = this.el.last().last().last(); //change for extjs 4.1 to append at end or form/table field
this.positionEl = this.resizeEl = this.wrap;
this.actionMode = 'wrap';
this.onResize = Ext.Function.createSequence(this.onResize,syncInputSize);
}
this.wrap[this.helpAlign == 'top' ? 'insertFirst' : 'createChild']({
cls: 'x-form-helptext',
html: this.helpText
});
}
function afterFieldRender() {
if (!this.wrap) {
// this.wrap = this.el.wrap({cls: 'x-form-field-wrap'}); // extjs 3.x for from fields that are not tables
// find next to last element and then wrap in text under field
//for example this.wrap = this.el.last().last().last();
var temp_el = new Array();
temp_el[0] = this.el;
i=0;
while(temp_el[i]) //change for extjs 4.1 to append at end or form/table field on next to last element for field type
{
temp_el[i+1] = temp_el[i].last();
i++;
}
var xt = this.getXType().substr(4);
if (xt == 'obox') // combobox
{
this.wrap = temp_el[i-4]; // insert before 3 elements from last for combo type
}
else // textfield, checkbox, etc
{
this.wrap = temp_el[i-2]; // insert before next to last table element for all other types
}
this.positionEl = this.resizeEl = this.wrap;
this.actionMode = 'wrap';
this.onResize = Ext.Function.createSequence(this.onResize,syncInputSize);
}
this.wrap[this.helpAlign == 'top' ? 'insertFirst' : 'createChild']({
cls: 'x-form-helptext',
html: this.helpText
});
}