功能:在TabPanel里通过this.add()方法加载一个子Tab(子Tab中包含一个formPanel和GridPanel)
子Panel的代码如下:
[code="javaScript"]
TabPanel=Ext.extend(Ext.Panel ,{
// xtype:"panel",
closable: true,
// layout: "anchor",
// layout: "border",
// layout: "absolute",
// layout: "column",
layout: "form",
// layout: "hbox",
// layout: "menu",
// layout: "toolbar",
// layout: "auto",
title:"分页2",
initComponent: function(){
this.items = [
new Ext.SearchCondition(),
new TestGrid()
]
TabPanel.superclass.initComponent.call(this);
}
});
[/code]
现在的问题是子Panel的formPanel(Ext.SearchCondition)部分无法显示出来,当IE窗口大小有变化时,这块就显示出来了??!!
经过测试如果不加载到父TabPanel中,这部分是能够正常显示的。。
以前也遇到类似无法显示的问题,最后原因是layout没有设置对,于是这次我把所有的layout都试了一遍,但是还是没有解决。。