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

@@ -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);
}
}