OpenLayers OpenLayers

Changeset 396

Show
Ignore:
Timestamp:
05/26/06 07:42:52 (3 years ago)
Author:
crschmidt
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Util.js

    r389 r396  
    722722        div.style.display = "inline-block"; 
    723723        div.style.filter = "progid:DXImageTransform.Microsoft" + 
    724                                  ".AlphaImageLoader(src='" + imgURL + "')"; 
     724                                 ".AlphaImageLoader(src='" + imgURL + "', sizingMethod='crop')"; 
    725725        img.style.filter = "progid:DXImageTransform.Microsoft" + 
    726726                                ".Alpha(opacity=0)";