Author Topic: BUG: Generated HTML Output incompatable with IE 7  (Read 3115 times)

ewitkows

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
BUG: Generated HTML Output incompatable with IE 7
« 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???  :-/

ewitkows

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: BUG: Generated HTML Output incompatable with I
« Reply #1 on: November 08, 2006, 08:00:58 am »
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
Code: [Select]


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:
Code: [Select]
document.getElementById('contentIFrame').style.height=800+'px';

Now, atleast the page displays...  ::)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: BUG: Generated HTML Output incompatable with I
« Reply #2 on: November 08, 2006, 10:00:39 am »
Something like this - or perhaps exactly this, I cannot remember - has been mentioned. Sparx has it repaired for the next build (should be 800).
No, you can't have it!