Reset element.offsets in Map and Control.PanZoomBar every time movement is

initiated. Also, reset element.offsets every time map.updateSize() is called.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@2915 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-03-28 22:26:03 +00:00
parent f850939a3a
commit 160722a16e
2 changed files with 9 additions and 7 deletions

View File

@@ -167,6 +167,8 @@ OpenLayers.Control.PanZoomBar.prototype =
this.mouseDragStart = evt.xy.clone();
this.zoomStart = evt.xy.clone();
this.div.style.cursor = "move";
// reset the div offsets just in case the div moved
this.zoomBarDiv.offsets = null;
OpenLayers.Event.stop(evt);
},