From 92f5a7d749d9507443fd9649f10cb8290aefc7e4 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sun, 2 Dec 2007 20:46:15 +0000 Subject: [PATCH] Reversing the order we set opacity changes the behavior when using VE, but nothing else. This fixes the fact that you can't use client side opacity while including the Virtual Earth javascript. Thanks for the spot from Jeff Yutzler. Includes a manual test. (Closes #1175) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 2 +- tests/manual/ve-opacity.html | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 tests/manual/ve-opacity.html diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 6dd5e4099e..11bb77cc72 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -171,8 +171,8 @@ OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position, element.style.overflow = overflow; } if (opacity) { - element.style.opacity = opacity; element.style.filter = 'alpha(opacity=' + (opacity * 100) + ')'; + element.style.opacity = opacity; } }; diff --git a/tests/manual/ve-opacity.html b/tests/manual/ve-opacity.html new file mode 100644 index 0000000000..8352941add --- /dev/null +++ b/tests/manual/ve-opacity.html @@ -0,0 +1,62 @@ + + + + + + + + + + +

VE Opacity

+

The overlay should have an opacity of 40%.

+
+ +