Move setting of the zIndex of the control div back to map where it belongs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,8 +25,6 @@ OpenLayers.Control.prototype = {
|
|||||||
if (this.div == null) {
|
if (this.div == null) {
|
||||||
this.div = OpenLayers.Util.createDiv();
|
this.div = OpenLayers.Util.createDiv();
|
||||||
}
|
}
|
||||||
this.div.style.zIndex = this.map.Z_INDEX_BASE['Control'] +
|
|
||||||
this.map.controls.length;
|
|
||||||
return this.div;
|
return this.div;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,8 @@ OpenLayers.Map.prototype = {
|
|||||||
this.controls.push(control);
|
this.controls.push(control);
|
||||||
var div = control.draw();
|
var div = control.draw();
|
||||||
if (div) {
|
if (div) {
|
||||||
|
div.style.zIndex = this.Z_INDEX_BASE['Control'] +
|
||||||
|
this.controls.length;
|
||||||
this.viewPortDiv.appendChild( div );
|
this.viewPortDiv.appendChild( div );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user