diff --git a/lib/OpenLayers/Layer/EventPane.js b/lib/OpenLayers/Layer/EventPane.js index 8dca860459..cabc8b88c8 100644 --- a/lib/OpenLayers/Layer/EventPane.js +++ b/lib/OpenLayers/Layer/EventPane.js @@ -70,7 +70,7 @@ OpenLayers.Layer.EventPane.prototype = this.pane.style.display = this.div.style.display; this.pane.style.width="100%"; this.pane.style.height="100%"; - if (/MSIE/.test(navigator.userAgent)) { + if (OpenLayers.Util.getBrowserName() == "msie") { this.pane.style.background = "url("+OpenLayers.Util.getImagesLocation()+"blank.gif)"; }