Make a first attempt at making the zoombar div transparency work in IE. Since this image is a background image, I want to be able to set different sizes for the img and the div. I'm nt sure how well this attempt will work. However, the code still works in FF on OS X. Someone with IE test when they get a bit?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -67,13 +67,18 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
|
||||
sz.h = zoomStopSize*(this.map.getZoomLevels()+1);
|
||||
sz.w = this.zoomStopWidth;
|
||||
|
||||
var div = OpenLayers.Util.createDiv(
|
||||
'OpenLayers_Control_PanZoomBar_Zoombar' + this.map.id,
|
||||
centered,
|
||||
sz);
|
||||
div.style.backgroundImage = "url("+imgLocation+"zoombar.png)";
|
||||
|
||||
var div = null
|
||||
if ((document.body.filters && (version >= 5.5) && (version < 7))) {
|
||||
div = OpenLayers.Util.createAlphaImageDiv(imgLocation+"zoombar.png",
|
||||
new OpenLayers.Size(sz.w, zoomStopSize),
|
||||
centered, "absolute", "OpenLayers_Control_PanZoomBar_Slider" + this.map.id, sz);
|
||||
} else {
|
||||
div = OpenLayers.Util.createDiv(
|
||||
'OpenLayers_Control_PanZoomBar_Zoombar' + this.map.id,
|
||||
centered,
|
||||
sz);
|
||||
div.style.backgroundImage = "url("+imgLocation+"zoombar.png)";
|
||||
}
|
||||
this.divEvents = new OpenLayers.Events(this, div);
|
||||
this.divEvents.register("mousedown", this, this.divClick);
|
||||
this.divEvents.register("mousemove", this, this.zoomBarDivDrag);
|
||||
|
||||
Reference in New Issue
Block a user