Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: ewitkows on October 30, 2006, 08:53:23 am
-
Running EA 6.5.798, if I output my diagrams to html and attempt to open them in IE 7, I receive JavaScript errors and the pages dont display. Any updates on this??? :-/
-
OK, so I certainly wouldnt call this a 'fix', especially since you have to do it everytime you regenerate your html docs, but i was able to fudge the js enough to get documentation to display in IE7.
The error takes place in the js\displayToc.js file, specifically in the resizePage function.
You'll see the following lines
document.getElementById('contentIFrame').style.height=top.document.body.clientHeight-74+'px';
document.getElementById('resizeFrames').style.height=top.document.body.clientHeight-70+'px';
document.getElementById('tocIFrame').style.height=top.document.body.clientHeight-74+'px';
If you were to place an alert(top.document.body.clientHeight), you'll see that slowly but surely the document body height slowly shrinks for some reason, eventually causing the value to be nothing and throwing an error.
Workaround:
For all three document.getElementByID height properties, I simply set them equal to "800+'px';" (so the full line looks like:document.getElementById('contentIFrame').style.height=800+'px';
Now, atleast the page displays... ::)
-
Something like this - or perhaps exactly this, I cannot remember - has been mentioned. Sparx has it repaired for the next build (should be 800).