diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index 9e3df434f0..9344295997 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -79,7 +79,7 @@ OpenLayers.Control.prototype = { moveTo: function (px) { if ((px != null) && (this.div != null)) { this.div.style.left = px.x + "px"; - this.div.style.top = px.x + "px"; + this.div.style.top = px.y + "px"; } },