From bdc0b9eefd079c5d2bcf85cf7200a66333715b35 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 20 May 2006 11:45:25 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Control.js | 2 -- lib/OpenLayers/Map.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index bb9bd58b35..4548572b42 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -25,8 +25,6 @@ OpenLayers.Control.prototype = { if (this.div == null) { this.div = OpenLayers.Util.createDiv(); } - this.div.style.zIndex = this.map.Z_INDEX_BASE['Control'] + - this.map.controls.length; return this.div; }, diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index e81fc5d6f2..b16c195e49 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -139,6 +139,8 @@ OpenLayers.Map.prototype = { this.controls.push(control); var div = control.draw(); if (div) { + div.style.zIndex = this.Z_INDEX_BASE['Control'] + + this.controls.length; this.viewPortDiv.appendChild( div ); } },