Changeset 401
- Timestamp:
- 05/26/06 11:47:07 (3 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Util.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
r397 r401 77 77 new OpenLayers.Size(sz.w, zoomStopSize), 78 78 imgLocation + "zoombar.png", 79 "absolute" );79 "absolute", null, "crop"); 80 80 div.style.height = sz.h; 81 81 } else { trunk/openlayers/lib/OpenLayers/Util.js
r396 r401 706 706 * @param {String} position 707 707 * @param {String} border 708 * @param {String} sizing 'crop', 'scale', or 'image'. Default is "scale" 708 709 * 709 710 * @returns A DOM Div created with a DOM Image inside it. If the hack is … … 712 713 */ 713 714 OpenLayers.Util.createAlphaImageDiv = function(id, px, sz, imgURL, 714 position, border ) {715 position, border, sizing) { 715 716 716 717 var div = OpenLayers.Util.createDiv(id, px, sz); … … 721 722 if (OpenLayers.Util.alphaHack()) { 722 723 div.style.display = "inline-block"; 724 if (sizing == null) { 725 sizing = "scale"; 726 } 723 727 div.style.filter = "progid:DXImageTransform.Microsoft" + 724 ".AlphaImageLoader(src='" + imgURL + "', sizingMethod='crop')"; 728 ".AlphaImageLoader(src='" + imgURL + "', " + 729 "sizingMethod='" + sizing + "')"; 725 730 img.style.filter = "progid:DXImageTransform.Microsoft" + 726 731 ".Alpha(opacity=0)";
