real fix for #189 -- event wasnt being triggered, and wihtout the clone(), control was floating down the div

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-19 04:47:12 +00:00
parent 484fc207cf
commit 1459ac5de9
2 changed files with 2 additions and 3 deletions

View File

@@ -32,7 +32,6 @@ OpenLayers.Control.PanZoomBar.prototype =
*/
setMap: function(map) {
OpenLayers.Control.PanZoom.prototype.setMap.apply(this, arguments);
this.map.events.register("changebaselayer", this, this.redraw);
},
@@ -52,7 +51,7 @@ OpenLayers.Control.PanZoomBar.prototype =
draw: function(px) {
// initialize our internal div
OpenLayers.Control.prototype.draw.apply(this, arguments);
px = this.position;
px = this.position.clone();
// place the controls
this.buttons = new Array();