Buongiorno a tutti,

..oggi mi sto scontrando con un problema di resize di un iframe in Opera.... ho scritto questo codice:

codice:
function adaptSizeFmain()
{
	var cnt=getWinSize(0)-24;
	document.getElementById('fmain').style.width=cnt + "px";
	cnt=-(getWinSize(0)-24)/2;
	document.getElementById('fmain').style.marginLeft=cnt + "px";
	cnt=getWinSize(1)-160;
	document.getElementById('fmain').style.height=cnt + "px";
	setTimeout('adaptSizeFmain()',1000 )
}

function getWinSize(i)
{
	var width = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
	var height = document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
	if (i==0) return width;
	else return height;
}
Il problema: funziona tutto alla perfezione su Chrome, Explorer e Firefox, ma in Opera aggiusta soltanto la larghezza..
..come ne vengo a capo?

Grazie in anticipo!
Andrea