Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
I don't have access to MSIE 9, so please help me out here. Does MSIE now honor 
the standard CSS opacity parameter and choke on the old filter parameter?

If so, that's likely to break a lot of software.

Before fixing I'd like to understand more about what's really causing the 
problem.

Original comment by [email protected] on 7 Dec 2010 at 9:35

  • Changed state: Acknowledged

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
The InfoBox code always sets opacity and filter.

According to a comment I found on a MS blog -- "IE9’s standard mode supports 
only opacity and not the alpha filter."

Therefore, I would expect MSIE 9 to accept the opacity setting and ignore the 
filter setting... and everything should work as expected.

Does anyone have any insight into this issue?

Original comment by [email protected] on 7 Dec 2010 at 10:15

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
It looks like it is not ignoring the filter setting, so if there is no opacity 
set in css the calculation is setting the filter to 0, and uses that value.  (I 
didn't test to see what happens if opacity and filter are set to different 
values, that might be worthwhile also...)

I hope this illustrates it better:

attachments:
step1 - IE9 mode before the if statement
step2 - IE9 mode after the if
step1ie8 - IE8 mode
works - IE9 mode with opacity set before the filter calculation 

Original comment by [email protected] on 8 Dec 2010 at 3:13

Attachments:

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Do me a favor and change the lines in question to this and tell me if it makes 
a difference:

    if (typeof this.div_.style.opacity !== "undefined" && this.div_.style.opacity !== "") {

      this.div_.style.filter = "alpha(opacity=" + (this.div_.style.opacity * 100) + ")";
    }

I've added a test to check if opacity is "" (on older versions of MSIE opacity 
is undefined if it hasn't been explicitly set; with MSIE 9 it seems to be "" 
when not explicitly set, just as with other browsers). If it is, I don't set 
filter.


Gary

Original comment by [email protected] on 8 Dec 2010 at 6:39

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
That fixed the issue.

Original comment by [email protected] on 8 Dec 2010 at 10:03

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Great news. I've updated the "trunk" version of InfoBox to incorporate this 
change. I will tag it as 1.1.1 in a couple of days.

Thanks for the help. This also affected KeyDragZoom and MarkerWithLabel.

Original comment by [email protected] on 8 Dec 2010 at 10:41

  • Changed state: FixedNotReleased

from google-maps-utility-library-v3.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Fixed in InfoBox 1.1.1 tagged release.

Original comment by [email protected] on 9 Dec 2010 at 5:54

  • Changed state: Fixed

from google-maps-utility-library-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.