From e266f430cae9e3678bee083c31188878419e119a Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Mon, 19 Mar 2007 19:46:42 +0000 Subject: [PATCH] Don't place the MouseToolbar twice. Fixes #537. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/MouseToolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/MouseToolbar.js b/lib/OpenLayers/Control/MouseToolbar.js index a045b87110..25fbfef97e 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -46,7 +46,7 @@ OpenLayers.Control.MouseToolbar.prototype = OpenLayers.Control.MouseDefaults.prototype.draw.apply(this, arguments); this.buttons = new Object(); var sz = new OpenLayers.Size(28,28); - var centered = this.position; + var centered = new OpenLayers.Pixel(OpenLayers.Control.MouseToolbar.X,0); this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area"); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan.");