1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Answers
    1
    Vote Rating
    0
    jastako is on a distinguished road

      0  

    Default Answered: Ext.Panel.itemselect event causes call-stack overflow

    Answered: Ext.Panel.itemselect event causes call-stack overflow


    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:

    Code:
        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.

  2. OK, it seems that 'beforeitemclick' solves the problem.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar