Ticket #1477: preventVMLToUpperLeftCornerBug.patch
| File preventVMLToUpperLeftCornerBug.patch, 1.2 kB (added by openlayers, 8 months ago) |
|---|
-
VML.js
old new 37 37 if (!this.supported()) { 38 38 return; 39 39 } 40 if (!document.namespaces.v) { 40 41 //if (!document.namespaces.v) { 41 42 document.namespaces.add("v", this.xmlns); 42 43 var style = document.createStyleSheet(); 43 44 style.addRule('v\\:*', "behavior: url(#default#VML); " + 44 "position: absolute; display: inline-block;");45 }45 "position: relative; display: inline-block;"); 46 //} 46 47 OpenLayers.Renderer.Elements.prototype.initialize.apply(this, 47 48 arguments); 48 49 }, … … 101 102 this.rendererRoot.style.width = this.size.w; 102 103 this.rendererRoot.style.height = this.size.h; 103 104 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%"; 106 109 }, 107 110 108 111 /**
