Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Firefox cursor positioning issue in EditorGridPanel resolved


The problem in the EditorGridPanel arrived when the columns exceeds more than the screen width and when we click on a cell to edit it jumps you back to the left. I have found a way to resolve this problem, but not sure this may raise some other issues or not . I would expect EXTJS experts could make some comments on this.
It seems that the ‘focusCell’ function in ext-all-debug.js has a problem. So, I just commented out the //this.focusEl.focus(); line.

focusCell : function(row, col, hscroll){
var el = this.ensureVisible(row, col, hscroll);
if(el){
this.focusEl.alignTo(el, "tl-tl");
if(Ext.isGecko){
//this.focusEl.focus();
}else{
this.focusEl.focus.defer(1, this.focusEl);
}
}
},

Not sure it is the right way, but I got it fixed the firefox jumping back problem when we click on the cell to edit (if grid exceeded the maximum page size horizontally.) . I would expect a fix in next version of extjs on this. I hope it may help someone too temporarily…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: