Ticket #1582: px.patch
| File px.patch, 4.7 kB (added by wallyatkins, 7 months ago) |
|---|
-
lib/OpenLayers/Control/PanZoomBar.js
old new 186 186 this.zoomStopHeight), 187 187 imgLocation + "zoombar.png", 188 188 "absolute", null, "crop"); 189 div.style.height = sz.h ;189 div.style.height = sz.h + "px"; 190 190 } else { 191 191 div = OpenLayers.Util.createDiv( 192 192 'OpenLayers_Control_PanZoomBar_Zoombar' + this.map.id, -
lib/OpenLayers/Layer/VirtualEarth.js
old new 95 95 // create div and set to same size as map 96 96 var veDiv = OpenLayers.Util.createDiv(this.name); 97 97 var sz = this.map.getSize(); 98 veDiv.style.width = sz.w ;99 veDiv.style.height = sz.h ;98 veDiv.style.width = sz.w + "px"; 99 veDiv.style.height = sz.h + "px"; 100 100 this.div.appendChild(veDiv); 101 101 102 102 try { // crash prevention -
lib/OpenLayers/Renderer/VML.js
old new 98 98 setSize: function(size) { 99 99 OpenLayers.Renderer.prototype.setSize.apply(this, arguments); 100 100 101 this.rendererRoot.style.width = this.size.w ;102 this.rendererRoot.style.height = this.size.h ;101 this.rendererRoot.style.width = this.size.w + "px"; 102 this.rendererRoot.style.height = this.size.h + "px"; 103 103 104 this.root.style.width = this.size.w ;105 this.root.style.height = this.size.h ;104 this.root.style.width = this.size.w + "px"; 105 this.root.style.height = this.size.h + "px"; 106 106 }, 107 107 108 108 /** … … 169 169 170 170 node.style.left = ((geometry.x/resolution)+xOffset).toFixed(); 171 171 node.style.top = ((geometry.y/resolution)-(yOffset+height)).toFixed(); 172 node.style.width = width ;173 node.style.height = height ;172 node.style.width = width + "px"; 173 node.style.height = height + "px"; 174 174 node.style.flip = "y"; 175 175 176 176 // modify style/options for fill and stroke styling below … … 310 310 311 311 var width = Math.round(style.graphicWidth || size * aspectRatio); 312 312 var height = Math.round(style.graphicHeight || size); 313 node.style.width = width ;314 node.style.height = height ;313 node.style.width = width + "px"; 314 node.style.height = height + "px"; 315 315 316 316 // Three steps are required to remove artefacts for images with 317 317 // transparent backgrounds (resulting from using DXImageTransform … … 327 327 image = this.createNode("olv:imagedata", node.id + "_image"); 328 328 node.appendChild(image); 329 329 } 330 image.style.width = width ;331 image.style.height = height ;330 image.style.width = width + "px"; 331 image.style.height = height + "px"; 332 332 image.src = style.externalGraphic; 333 333 image.style.filter = 334 334 "progid:DXImageTransform.Microsoft.AlphaImageLoader(" + … … 413 413 // Set the internal coordinate system to draw the path 414 414 node.style.left = scaledBox.left; 415 415 node.style.top = scaledBox.top; 416 node.style.width = scaledBox.getWidth() ;417 node.style.height = scaledBox.getHeight() ;416 node.style.width = scaledBox.getWidth() + "px"; 417 node.style.height = scaledBox.getHeight() + "px"; 418 418 419 419 node.coordorigin = scaledBox.left + " " + scaledBox.top; 420 420 node.coordsize = scaledBox.getWidth()+ " " + scaledBox.getHeight(); … … 535 535 536 536 var diameter = radius * 2; 537 537 538 node.style.width = diameter ;539 node.style.height = diameter ;538 node.style.width = diameter + "px"; 539 node.style.height = diameter + "px"; 540 540 } 541 541 }, 542 542 … … 640 640 641 641 node.style.left = geometry.x/resolution; 642 642 node.style.top = geometry.y/resolution; 643 node.style.width = geometry.width/resolution ;644 node.style.height = geometry.height/resolution ;643 node.style.width = geometry.width/resolution + "px"; 644 node.style.height = geometry.height/resolution + "px"; 645 645 }, 646 646 647 647 /**
