OpenLayers OpenLayers

Ticket #1477: preventVMLToUpperLeftCornerBug.patch

File preventVMLToUpperLeftCornerBug.patch, 1.2 kB (added by openlayers, 8 months ago)

Shows how I can prevent the bug

  • VML.js

    old new  
    3737        if (!this.supported()) {  
    3838            return;  
    3939        } 
    40         if (!document.namespaces.v) { 
     40 
     41        //if (!document.namespaces.v) { 
    4142            document.namespaces.add("v", this.xmlns); 
    4243            var style = document.createStyleSheet(); 
    4344            style.addRule('v\\:*', "behavior: url(#default#VML); " + 
    44                                    "position: absolute; display: inline-block;"); 
    45        
     45                                   "position: relative; display: inline-block;"); 
     46        //
    4647        OpenLayers.Renderer.Elements.prototype.initialize.apply(this,  
    4748                                                                arguments); 
    4849    }, 
     
    101102        this.rendererRoot.style.width = this.size.w; 
    102103        this.rendererRoot.style.height = this.size.h; 
    103104 
    104         this.root.style.width = this.size.w; 
    105         this.root.style.height = this.size.h; 
     105        //this.root.style.width = this.size.w; 
     106        //this.root.style.height = this.size.h; 
     107        this.root.style.width = "100%"; 
     108        this.root.style.height = "100%"; 
    106109    }, 
    107110 
    108111    /**