PDA

View Full Version : Ext.Panel.itemselect event causes call-stack overflow



jastako
31 Oct 2013, 1:01 AM
I found handling 'itemclick' event frustrating as it causes call-stack overflow when used along with Ext.Panel.expand() method. If I expand docked panel (inside border layout) manually everything works perfectly fine, but on the other hand expanding it programatically (wrt Ext.Panel.expand()) and then selecting a panel's item manually causes following call-stack to overflow:



Uncaught RangeError: Maximum call stack size exceeded
Ext.dom.Query.Ext.core.DomQuery.Ext.DomQuery.DQ.filter
Ext.dom.Query.Ext.core.DomQuery.Ext.DomQuery.DQ.is
Ext.define.is
Ext.define.getNode
Ext.define.scrollRowIntoView
Ext.define.focusRow
Ext.define.onRowFocus
Ext.define.onLastFocusChanged
Ext.define.setLastFocused
Ext.define.focusRow
Ext.define.onRowFocus
Ext.define.onLastFocusChanged
Ext.define.setLastFocused
Ext.define.focusRow
Ext.define.onRowFocus
Ext.define.onLastFocusChanged
Ext.define.setLastFocused
Ext.define.focusRow
Ext.define.onRowFocus
Ext.define.onLastFocusChanged
Ext.define.setLastFocused
Ext.define.focusRow
Ext.define.onRowFocus
Ext.define.onLastFocusChanged
Ext.define.setLastFocused
Ext.define.focusRow
Ext.define.onRowFocus
[...]


Any ideas? The reason I decided on 'itemclick' is, 'select' event doesn't fire when item is already selected (highlighted), so the former seemed to be convienient way to overcome this issue, but apparently can't have it. Maybe there're other ways of achieving same goal. I'm using ExtJS 4.2.1 and this applies to both Chrome and Firefox on Linux.