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.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi