Results 1 to 4 of 4

Thread: [4.0.2 RC3] Tab Panel add failure

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045

    Default [4.0.2 RC3] Tab Panel add failure

    I'm using an AJAX call to load tabs for a tab panel. In 4.0.1 all is well. In 4.0.2 RC3, when I add a tab, it visually renders, but when the onAdd method calls setActiveTab(), it fails in Ext.layout.container.Card.setActiveItem:

    PHP Code:
               me.owner.suspendLayout false;
                if (
    newCard.hidden) {
                    
    newCard.show();
                } else {
                    
    me.doComponentLayout(); // according to console, method does not exist!
                

    Again, this worked correctly in 4.0.1.

    Cheers,

    stevil

  2. #2

    Default

    Just want to confirm that. It worked in 4.0.1 but now i also get a "me.doComponentLayout is not a function" error when adding a tab.

    Michael

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    61

    Default

    I also encountered this problem. I fixed it with replacing
    Code:
    me.doComponentLayout()
    with
    Code:
    me.onLayout().
    I found that out, watching the diff between 4.0.1 and 4.0.2RC3, and there was a call to me.onLayout() in the previous version. For me the code seems to work in my case as before, but I don't know if this fix is valid like this. That should be decided by the sencha developers.
    Last edited by Shyru; 8 Jun 2011 at 6:54 AM. Reason: Forgot something.

  4. #4
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    61

    Thumbs up Fixed

    From the diff between 4.0.2RC3 and 4.0.2 I see that this was fixed. Thread can be closed.

Posting Permissions

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