pulling up fixes for #366 #387 #392 from trunk so that we can release RC3

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.2@1785 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-11-08 19:07:32 +00:00
parent 6bf55d5a43
commit 8034d2d280
2 changed files with 10 additions and 3 deletions

View File

@@ -786,8 +786,10 @@ OpenLayers.Map.prototype = {
var originPx = this.getViewPortPxFromLonLat(this.layerContainerOrigin);
var newPx = this.getViewPortPxFromLonLat(lonlat);
this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px";
this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px";
if ((originPx != null) && (newPx != null)) {
this.layerContainerDiv.style.left = (originPx.x - newPx.x) + "px";
this.layerContainerDiv.style.top = (originPx.y - newPx.y) + "px";
}
},
/**