ExtJS的ExtJS的調整面板窗口內
我有一個ifram一個Ext.Panel內,面板是Ext.Window
我怎樣才能使窗口自動高度時,裏面的iframe變化的內容
請參閱代碼:
var filePanel = new Ext.Panel({
autoHeight: true
});
var fileUploadWindow = new Ext.Window({
modal: true,
autoHeight: true,
title: 'File Upload',
closable: true,
draggable: true,
autoDestroy: false,
width: 570,
items: [filePanel],
shadow: true,
buttons: [{
xtype: 'button',
text: 'Close',
handler: function (button) {
fileUploadWindow.hide();
fileStore.reload();
}
}]
});
filePanel.add(new Ext.Panel({
html: '<iframe src="../shared/Upload.aspx?_key=' + sskey +
'&_id=' + wkId + '" style="width:550px; border:none;"></iframe>'
}));
有人可以幫我嗎?
很好,它工作正常 –