Results 1 to 2 of 2

Thread: Ext.TabPanel: event 'activate' not fired for first added tab

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    42
    Vote Rating
    1
      1  

    Default Ext.TabPanel: event 'activate' not fired for first added tab

    Press button "Add" twice. In console print info only for "Panel-2". After select "Panel-1" print info for "Panel-1".

    P.S. In 4.0.7 for "Panel-1" event 'activate' fired twice for first activate...

    Code:
    var cnt = 0;
        var b_add = Ext.create('Ext.Button', {
          renderTo: document.body,
          text: 'Add',
          handler: function() {
            cnt++;
            var p = Ext.create('Ext.panel.Panel', {
              title: 'Panel-' + cnt,
              items: [
                {html: 'Text-' + cnt}
              ],
              listeners: {
                activate: function(a) {
                  console.info("Activate", a);
                }
              }
            });
            panel.add(p);
            panel.setActiveTab(p);
          }
        });
        var panel = Ext.create('Ext.tab.Panel', {
          renderTo: document.body,
          width: 500,
          height: 300
        });
    Last edited by mitchellsimoens; 28 Dec 2012 at 9:01 AM. Reason: fix test case

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Vote Rating
    1271
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •