Crop the image to the size of the div. This is helpful in cases where the image is larger than the div -- such as when we're adjusting the height, in the zoombar, and have a significantly larger image that we want to crop to the size of the zoombar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -721,7 +721,7 @@ OpenLayers.Util.createAlphaImageDiv = function(id, px, sz, imgURL,
|
||||
if (OpenLayers.Util.alphaHack()) {
|
||||
div.style.display = "inline-block";
|
||||
div.style.filter = "progid:DXImageTransform.Microsoft" +
|
||||
".AlphaImageLoader(src='" + imgURL + "')";
|
||||
".AlphaImageLoader(src='" + imgURL + "', sizingMethod='crop')";
|
||||
img.style.filter = "progid:DXImageTransform.Microsoft" +
|
||||
".Alpha(opacity=0)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user