PDA

View Full Version : Bug in triggerWidth detection when using scoped-mode



zerkms
2 May 2012, 2:45 PM
When we use scoped mode - we don't have x-reset class applied to body.

But the code



if (!me.triggerWidth) {
tempEl = Ext.getBody().createChild({
style: 'position: absolute;',
cls: Ext.baseCSSPrefix + 'form-trigger'
});
Ext.form.field.Trigger.prototype.triggerWidth = tempEl.getWidth();
tempEl.remove();
}


in trigger.js adds dummy element to the body anyway, thus we get the element without applied css rules, thus its width is 0

As a result - it leads to zero-width for datepicker (when we use CellEdit plugin for a grid)