我在 ExtJs 3.4 应用程序中有一个窗口:
x = new Ext.Window({
id: 'myWindow',
layout: 'fit',
title:'Информация БДОН',
autoScroll:false,
width:600,
autoLoad : {
url : url_servlet+"form.jsp?bdon=1&ss="+str,
scripts: true
}
})
x.show();
autoLoad
并使用form.jsp将内容加载到此窗口:
<html>
<head>
<head>
<body>
<script type="text/javascript">
function highlightWindow() {
var win = Ext.getCmp('myWindow');
var winBody= win.body;
winBody.highlight();
var tabs = new Ext.TabPanel({
type:'tabpanel',
deferredRender: false,
activeTab: 0,
bodyStyle:'padding:5px 5px 0',
autoScroll: false,
layoutOnTabChange: true,
height:400,
hideMode: 'offsets',
items: [searchform,zemform,reallyform,docform,podform]
});
tabs.render(winBody);
}
highlightWindow.defer(1000);
</script>
</body>
</html>
将其FromPanelssearchform,zemform,reallyform,docform,podform
转换为 TabPanel 的位置。每个想法都很好,但看起来很丑:
即使我使用layout:'fit'
.
这里有什么问题?