OpenLayers OpenLayers

Ticket #776: getBrowserName.patch

File getBrowserName.patch, 0.6 kB (added by euzuro, 1 year ago)
  • lib/OpenLayers/Layer/EventPane.js

    old new  
    7070        this.pane.style.display = this.div.style.display; 
    7171        this.pane.style.width="100%"; 
    7272        this.pane.style.height="100%"; 
    73         if (/MSIE/.test(navigator.userAgent)) { 
     73        if (OpenLayers.Util.getBrowserName() == "msie") { 
    7474          this.pane.style.background = "url("+OpenLayers.Util.getImagesLocation()+"blank.gif)"; 
    7575        } 
    7676