PDA

View Full Version : [4.0.2 RC3] Tab Panel add failure



stevil
8 Jun 2011, 5:38 AM
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:



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

michael.piecko
8 Jun 2011, 6:30 AM
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

Shyru
8 Jun 2011, 6:53 AM
I also encountered this problem. I fixed it with replacing

me.doComponentLayout()
with

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.

Shyru
10 Jun 2011, 1:47 AM
From the diff between 4.0.2RC3 and 4.0.2 I see that this was fixed. Thread can be closed.