Ext-界面间调用不成功 求解
//Application.js内容
Application = Ext.extend(Ext.Viewport, {
filePanel : null,
fileCommentPanel:null,
constructor : function(_cfg) {
this.filePanel = new FilePanel(this);
this.fileCommentPanel=new FileCommentPanel();
Application.superclass.constructor.call(this, {
layout : 'border',
items : [ this.headerPanel, {
title : '文件目录',
region : 'west',
layout : 'border',
margins : '2 0 5 5',
width : 275,
minSize : 200,
maxSize : 350,
collapsible : true,
split : true,
items : [this.fileTreePanel, {
region : 'south',
title : '文件信息',
autoScroll : true,
collapsible : true,
collapseMode : 'mini',
collapsed : true,
split : true,
margins : '-1',
cmargins : '2 2 2 2',
height : 220,
html : '未开发...'
}]
},
this.fileCommentPanel ,
this.filePanel,
{
xtype : 'box',
region : 'south',
applyTo : 'footer',
height : 40
}]
});
}
});
//FileCommentPanel.js内容
FileCommentPanel = Ext.extend(Ext.Panel,{
constructor:function(){
FileCommentPanel.superclass.constructor.call(this, {
title : '文件互动',
region : 'east',
id:'fc',
//layout : 'border',
//margins : '2 0 5 0',
width : 200,
minSize : 200,
maxSize : 350,
collapsible : true,
collapsed : true,
split : true
});
}
});
怎么界面无法显示appliction里面的items.
如果把FileCommentPanel里面的
{
title : '文件互动',
region : 'east',
id:'fc',
//layout : 'border',
//margins : '2 0 5 0',
width : 200,
minSize : 200,
maxSize : 350,
collapsible : true,
collapsed : true,
split : true
}替换Application.js里面的items里面的this.fileCommentPanel,运行正常
不知道是为什么.
小弟分不多但求求高人指点.