PDA

View Full Version : Grid Breaks on Reconfigure Extjs 4.2.1.883



jakejamessteele
13 Dec 2013, 4:22 PM
Browser: Chrome (latest non beta)
Javascript: V8
Extjs: 4.2.1.883

Problem:


var columns = me.columns;
columns.push(Ext.create('MyApp.base.Column.ApprovalStatus', {
dataIndexName: 'transactionStatus'
}),
{
text: 'Comments',
renderer: function (value, meta, record) {
return record.commentsStore.getTotalCount();
}
});
me.reconfigure(undefined, columns);


After performing the above command, any time you scroll over the headerCt of a grid it produces this error:

Uncaught TypeError: Cannot call method 'isOnLeftEdge' of undefined ext-all-debug.js:107952 (http://localhost:55336/scripts/libraries/ext-4.2.1.883/ext-all-debug.js)

Ext.define.onHeaderCtMouseMoveext-all-debug.js:107952 (http://localhost:55336/scripts/libraries/ext-4.2.1.883/ext-all-debug.js)
(anonymous function)VM3122:6 (http://www.sencha.com/forum/chrome-devtools://devtools/bundled/devtools.html?dockSide=bottom&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1))
Ext.apply.createListenerWrap.wrap




headerEl = e.getTarget('.' + me.colHeaderCls, 3, true);


if (headerEl){
overHeader = Ext.getCmp(headerEl.id);



if (overHeader.isOnLeftEdge(e)) {

- Ln: 107952 in ExtJs-Debug-All.js

Best of luck!

Gary Schlosberg
18 Dec 2013, 4:12 PM
Thanks for the report. Can you please post a test case which reproduces the issue?