Document reporting two different scrollHeights on the web

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

Subject: solved - document reporting two different scrollHeights on the web

I haven’t exactly solved the issue but I have managed to get it to display correctly.

What I needed to do was create a holding table of 1 row and 2 columns, both these columns were set to size to fit and the table fit with margins. Inside this table I then created a 1 x 1 table on the left hand side with a fixed width. On the right hand side I then created another table, this time 2 x 2, and had both the table and the columns set to fixed width. Not sure why this works but it does !!

Hope this helps someone else with their iframes.

Cheers

Paul