diff --git a/lib/OpenLayers/Control/PanZoomBar.js b/lib/OpenLayers/Control/PanZoomBar.js index 05e3bb8378..64f684915f 100644 --- a/lib/OpenLayers/Control/PanZoomBar.js +++ b/lib/OpenLayers/Control/PanZoomBar.js @@ -106,7 +106,8 @@ OpenLayers.Control.PanZoomBar.prototype = this.map.events.register("zoomend", this, this.moveZoomBar); - centered = centered.add(0, zoomStopSize*(this.map.getZoomLevels()+1)); + centered = centered.add(0, + this.zoomStopHeight*(this.map.getZoomLevels()+1)); return centered; }, /*