Strange IE6, IE7, IE8 problem with Lightwindow

Subscribe to Strange IE6, IE7, IE8 problem with Lightwindow 2 post(s), 1 voice

 
Avatar jefetech 2 post(s)

I’m opening light window with simple javascript, by clicking on an article link within an iframe. Firefox, Safari works perfectly. All versions of IE open way off the screen. Not sure how to fix this yet. Check it out by going to my site http://www.efatloss.com and clicking on the “Weight Loss News” section.

This is the javascript I’m using to open the lightwindow:

myLightWindow.activateWindow({
        href: url,
        title: 'eFatloss News Reader',
        params: 'page',
        width: 1000
});
 
Avatar jefetech 2 post(s)

Ok I got it working. Actually had nothing to do with the iframe. For some reason I had to change this:

this.dimensions.viewport.height = document.documentElement.clientHeight;
this.dimensions.viewport.width = document.documentElement.clientWidth;

to:

this.dimensions.viewport.height = document.body.clientHeight;
this.dimensions.viewport.width = document.body.clientWidth;

in the _browserDimensions function.