PDA

View Full Version : Urgent:: Help with iframe



deamon1767
7 Mar 2012, 2:46 PM
Below is my code
It is showing my html in the window, but showing a scroll bar and not filling the window (only about 30% of the correct height)

MyDesktop.GridWindow = Ext.extend(Ext.app.Module, {
id:'grid-win',
init : function(){
this.launcher = {
text: 'Dispatch',
iconCls:'icon-grid',
handler : this.createWindow,
scope: this
}
},
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('grid-win');
if(!win){
win = desktop.createWindow({
id: 'grid-win',
title:'Dispatch',
width:600,
height:910,
iconCls: 'icon-grid',
shim:false,
animCollapse:false,
constrainHeader:true,
layout: 'fit',
items:
new Ext.Panel({
width:600,
height:910,
layout : 'fit',
items : [{

autoEl : {
tag : "iframe",
src : "cmp/dispatch/designer.html" } }]
})
});
}
win.show();
}
});

deamon1767
7 Mar 2012, 2:48 PM
I need it to fill the window and resize when the window is resized

dedoz
7 Mar 2012, 3:21 PM
which extjs version are you using ?
Ext.extend its deprecated since 4.0
are you using extjs 3.x or something ?

deamon1767
7 Mar 2012, 3:24 PM
I am using extjs4

deamon1767
7 Mar 2012, 3:26 PM
32481