Uploaded image for project: 'Geomajas GWT2 client'
  1. Geomajas GWT2 client
  2. GWTII-85

Map layer Transparancy (Opacity) is sometimes applied twice in IE9 + IE10

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not applicable
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Main API
    • Labels:
      None
    • CLA:
      I have read and agree with the Geomajas CLA for the attachments

      Description

      Happens when using IE10 with "Browser mode" = "IE10" or "IE9" and "Document Mode" = "IE9 Standards".
      Behaves correctly with "Browser mode" = "IE10" or "IE9" and "Document Mode" = "IE8 Standards" of "Standards" (or "Quirks").

      E.g. when opacity is set to 0.5, actual opacity is 0.25 (so layer is rendered much too transparent) because in IE9 and higher the "opacity:" CSS property is supported and the "filter:" too.

      style of div for layer images:

      filter: alpha(opacity=50.0); ...; opacity: 0.5;"

      Bug originates in org.geomajas.gwt.client.gfx.AbstractHtmlObject in geomajas-gwt-client-impl-2.0.0.jar:

      public void setOpacity(double opacity) { this.opacity = opacity; DOM.setStyleAttribute(widget.getElement(), "filter", "alpha(opacity=" + (opacity * 100) + ")"); DOM.setStyleAttribute(widget.getElement(), "opacity", Double.toString(opacity)); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              anb An Buyle
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: