Ext.onReady(function() {
function reinitIframe(){
var iframe = document.getElementById("frame_content");
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
}catch (ex){
var bHeight = 0;
}
try{
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
}catch (ex){
var dHeight = 0;
}
if(dHeight!=0 && bHeight!=0){
var height = Math.min(bHeight, dHeight);
}else{
var height = Math.max(bHeight, dHeight);
}
if(Ext.isGecko){
height = height+30;
}
iframe.style.height = height+"px";
}
window.setInterval(function(){
reinitIframe()
}, 200);
});