Click to See Complete Forum and Search --> : IE6 padding on top and left bug


vnaut
06-30-2007, 06:33 AM
Hi.

Im searching for a solution to a crappy IE bug, well i ssume its a bug.

Basically i have a java pop up in a flash movie that opens a jpeg in a new browser window. the width/height are set to the exact dimensions of the jpeg.

getURL("javascript:void window.open('http://www.bodosperlein.com/images/ldibbern01.jpg','Portfolio','width=400,height=313,resizable=no,scrollbars=no,status=yes,screenx=100, screeny=20');");

In netscape, mozilla and safari it works perfectly, but in IE 6 i always get some padding on the top and left of the image. - See this link for an example (http://www.labmeta.net/files/popupborderproblem.jpg)

Its really driving me nuts. I've been looking around for some kind of fix, but cant find quite the right thing.

Has anyone dealt with this problem before? or anyone able to point me to a solution?

Many Thanks,

Paul

Fang
06-30-2007, 09:03 AM
IE 6 does not scale the image the other browsers do.
you would have more control over the window if you loaded the image in a document.

vnaut
06-30-2007, 09:32 AM
Hi,

Thanks for the response.

Hmm, it doesnt seem to be scaling thats the issue, its the default padding and margins that IE does differently to the other browsers. if i use a thml document to embed the images in i can hack it using css that resets all padding and margins to 0 and so makes ie behave the same as other browsers. But theres 500 hundred odd of these things. Would be really tedious to have to embed every image in html so i can tease the browser with a bit of css. Though i appreciate that may be the only way.

Is there anyway to define a css class in the javascript call from flash?

Thanks,

Paul

Fang
06-30-2007, 10:41 AM
Your best bet is a html document.
I think you will find that Fx does resize the image.