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
+4 -4
View File
@@ -28,10 +28,10 @@ OpenLayers.Control.PanZoom.prototype =
this._addButton("panup", "north-mini.png", centered, sz);
xy.y = centered.y+sz.h;
this._addButton("panleft", "west-mini.png", xy, sz);
this._addButton("panright", "east-mini.png", xy.addX(sz.w), sz);
this._addButton("pandown", "south-mini.png", centered.addY(sz.h*2), sz);
this._addButton("zoomin", "zoom-plus-mini.png", centered.addY(sz.h*3), sz);
centered = centered.addY(sz.h*4);
this._addButton("panright", "east-mini.png", xy.add(sz.w, 0), sz);
this._addButton("pandown", "south-mini.png", centered.add(0, sz.h*2), sz);
this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3), sz);
centered = centered.add(0, sz.h*4);
this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);
return this.div;
},