replaced calls to addX and addY with calls to add. Simplify

git-svn-id: http://svn.openlayers.org/trunk/openlayers@51 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-16 18:32:11 +00:00
parent a2ef49dd9c
commit bd16aa9cdf
4 changed files with 11 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ OpenLayers.Control.LayerSwitcher.prototype =
div.ondblclick = this.doubleClick.bindAsEventListener(div);
div.onmousedown = this.singleClick.bindAsEventListener(div);
this.div.appendChild(div);
pixel = pixel.addY(35);
pixel = pixel.add(0, 35);
}
return this.div;
},