Patch from Gregers Rygg to fix setOpacity for AnchoredBubble popups.

(Closes #1204)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-15 03:51:21 +00:00
parent c9fdb6122f
commit c720e44c7c
3 changed files with 5 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ Andreas Hocevar
Eric Lemoine
Philip Lindsay
Corey Puffault
Gregers Rygg
Tim Schaub
Christopher Schmidt
Cameron Shorter

View File

@@ -128,13 +128,11 @@ OpenLayers.Popup.AnchoredBubble =
* opacity - {float}
*/
setOpacity:function(opacity) {
if (opacity != undefined) {
this.opacity = opacity;
}
OpenLayers.Popup.Anchored.prototype.setOpacity.call(this, opacity);
if (this.div != null) {
if (this.contentDiv != null) {
OpenLayers.Rico.Corner.changeOpacity(this.contentDiv,
if (this.groupDiv != null) {
OpenLayers.Rico.Corner.changeOpacity(this.groupDiv,
this.opacity);
}
}

View File

@@ -32,6 +32,7 @@
<li>Marker/test_Box.html</li>
<li>test_Popup.html</li>
<li>Popup/test_Anchored.html</li>
<li>Popup/test_AnchoredBubble.html</li>
<li>test_Feature.html</li>
<li>Feature/test_Vector.html</li>
<li>test_Events.html</li>