diff --git a/lib/OpenLayers/Control/PanZoomBar.js b/lib/OpenLayers/Control/PanZoomBar.js index 42ae464ee9..b398c39815 100644 --- a/lib/OpenLayers/Control/PanZoomBar.js +++ b/lib/OpenLayers/Control/PanZoomBar.js @@ -53,7 +53,7 @@ OpenLayers.Control.PanZoomBar.prototype = var zoomStopSize = this.zoomStopHeight; var slider = OpenLayers.Util.createAlphaImageDiv(imgLocation+"slider.png", - new OpenLayers.Pixel(20,9), + new OpenLayers.Size(20,9), centered.add(-1, (this.map.getZoomLevels())*zoomStopSize), "absolute", "OpenLayers_Control_PanZoomBar_Slider" + this.map.id); slider.style.zIndex = this.div.zIndex + 5;