/    Sign up×
Community /Pin to ProfileBookmark

IE6 padding on top and left bug

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.

[CODE]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′);”);[/CODE]

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. – [URL=http://www.labmeta.net/files/popupborderproblem.jpg]See this link for an example[/URL]

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

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@FangJun 30.2007 — 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.
Copy linkTweet thisAlerts:
@vnautauthorJun 30.2007 — 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
Copy linkTweet thisAlerts:
@FangJun 30.2007 — Your best bet is a html document.

I think you will find that Fx does resize the image.
×

Success!

Help @vnaut spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...