extjs4 tabpanel引用其他页面panel时border布局高度不能自动适应
代码如下:Ext.create('Ext.Panel', {
title: 'test',
id: 'test',
closable: true,
layout: 'fit',
autoLoad: {
method: 'POST',
url: a.jsp,
nocache: true,
text: "加载中,请稍候……",
scripts: true
}
});
Ext.getCmp('Tabpanel').add(panel);
在a.jsp里
Ext.create('Ext.Panel', {
layout: 'border',
renderTo: 'divBody',
items: [{
region: 'north',
html: 'Page Title',
title: 'north'
}, {
region: 'center',,
html: 'Page Title',
title: 'center'
}]
});
布局extjs4
代码如下:Ext.create('Ext.Panel', {
title: 'test',
id: 'test',
closable: true,
layout: 'fit',
autoLoad: {
method: 'POST',
url: a.jsp,
nocache: true,
text: "加载中,请稍候……",
scripts: true
}
});
Ext.getCmp('Tabpanel').add(panel);
在a.jsp里
Ext.create('Ext.Panel', {
layout: 'border',
renderTo: 'divBody',
items: [{
region: 'north',
html: 'Page Title',
title: 'north'
}, {
region: 'center',,
html: 'Page Title',
title: 'center'
}]
});
布局extjs4
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货