allow for user to set the sizing method. make default 'scale'. set to 'crop' as desired for panzoombar in r396. removed outdated tests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-26 15:47:07 +00:00
parent 7d81333da0
commit 542e9fa258
2 changed files with 8 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ OpenLayers.Control.PanZoomBar.prototype =
div = OpenLayers.Util.createAlphaImageDiv(id, centered,
new OpenLayers.Size(sz.w, zoomStopSize),
imgLocation + "zoombar.png",
"absolute");
"absolute", null, "crop");
div.style.height = sz.h;
} else {
div = OpenLayers.Util.createDiv(