We have a site with Iframes and we size the content of our main frame in the onload event to fit its own scrollheight.
document.all[“mimihome”].style.height = document.frames(“mimihome”).document.body.scrollHeight;
The problem I have it that some documents seem to be reporting two different values at onload and then again at onresize.
With a ‘dodgy’ page it loads and it reports a value of about 900 onload and it sets the iframe depth accordingly but then when if I grab the side of the browser (and forcing a resize) it reports a value of about 600.
The document in question has a table in it and it is this that is causing all the problems. I am led to believe this because if I set at least two of the three columns to ‘size to fit’ then the document creates an Iframe of the right depth onload.
Does anyone know why this might be and can they make any suggestions ?
Thanks
Paul