Ext: Help [Archive] - Page 68 - Ext JS Forums:: TabPanel not rendering first tab. Form JSON Load - Textarea (SOLVED) TreeNode with no text Should an Ext.Container object be able to render Panel items? http://extjs.com/forum/archive/index.php/f-9-p-68.htmlHOME | Hi,
I isolated this very simple code from a project that is not working as I want.
pb: A window contains a FormPanel, that itself contains 2 tabs.
var a = new Ext.Window({
width:540,
height:350,
items: [
new Ext.form.FormPanel({
items: [{
xtype:'tabpanel',
autoHeight : true,
activeTab: 0,
items:[{
title: 'Tab1',
items :[{ html: 'message' }]
},{
title: 'Tab2',
items: [{ html: 'message 2'}]
}]
}]
})]
});
a.show(this);When I click on second Tab, nothing is displayed until I resize my browser-window. [2.0.2][CLOSED] Accordion panel not rendered corectly into a tab :: each panel as it is expanded so that it becomes the first item in the container, I was trying layout: fit on the TabPanel instead of Tab1. http://extjs.com/forum/archive/index.php/t-31430.htmlHOME |
Moving the Ext window doesn't help.
It appears (with Firebug) that nothing is present in the body of this tab until I resize my browser. At this moment, the content appears normally in both (in firebug > HTML and in my tab).
I'm using Ext 2.0 (rev 1450) and Firefox 2.0.0.11.
Am I doing something wrong?
Thanks a lot,
Z.
Excellent!
Just added
layoutOnTabChange: true,after my
xtype:'tabpanel',and it works.
I spent a lot of time on this.
Thank you very much for your help!
Try using layoutOnTabChange (http://extjs.com/deploy/dev/docs/?class=Ext.TabPanel&member=layoutOnTabChange)
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|