cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

IE8 and transparency issue #200

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Visit the page http://gmaps-utility-library-
dev.googlecode.com/svn/tags/extlargemapcontrol/1.2/examples/advanced.html 
in IE8. See the black color arround the map control in the left side.

What is the expected output? What do you see instead?
A black border occurs arround the map control. The transparency is not 
working correct. I think it is related to the IE8 bug mentioned here 
http://www.mooforum.net/discussion/issue-with-png-transparency-ie8-
t2063.html and http://morris-photographics.com/photoshop/articles/png-
gamma.html.

What version of the product are you using? On what operating system?
Version 1.2 of extlargemapcontrol. OS is Windows 7 Enterprise. Using IE 
version 8.0.7600.16385.

Please provide any additional information below.
Have tried to change the extlargemapcontrol.js to use some local 
PNGcrush'ed png files instead. But without any luck. The only solution I 
could find was to run IE8 in compatibility mode, but it gives me other 
problems, because the website is already optimized for IE8.

Original issue reported on code.google.com by belto...@gmail.com on 20 Apr 2010 at 2:55

GoogleCodeExporter commented 8 years ago
I found out that the AplhaImageLoader in line 558:

img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + 
imgSrc + "')";

causes the problem. If this line is removed in IE8 is it working fine. The line 
is 
required in IE7 though.

A patch is attached.

Original comment by belto...@gmail.com on 20 Apr 2010 at 3:30

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, it works, I confirm.

Original comment by matteo.p...@gmail.com on 7 Oct 2010 at 10:38