Changeset 7341
- Timestamp:
- 06/10/08 16:39:03 (2 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Renderer/VML.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
r6833 r7341 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( trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js
r6313 r7341 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 trunk/openlayers/lib/OpenLayers/Renderer/VML.js
r7324 r7341 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 ;103 104 this.root.style.width = this.size.w ;105 this.root.style.height = this.size.h ;101 this.rendererRoot.style.width = this.size.w + "px"; 102 this.rendererRoot.style.height = this.size.h + "px"; 103 104 this.root.style.width = this.size.w + "px"; 105 this.root.style.height = this.size.h + "px"; 106 106 }, 107 107 … … 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 … … 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 … … 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 = … … 361 361 362 362 node.style.left = Math.round( 363 parseInt(node.style.left) + imgBounds.left) ;363 parseInt(node.style.left) + imgBounds.left) + "px"; 364 364 node.style.top = Math.round( 365 parseInt(node.style.top) - imgBounds.bottom) ;365 parseInt(node.style.top) - imgBounds.bottom) + "px"; 366 366 }, 367 367 … … 412 412 413 413 // Set the internal coordinate system to draw the path 414 node.style.left = scaledBox.left ;415 node.style.top = scaledBox.top ;416 node.style.width = scaledBox.getWidth() ;417 node.style.height = scaledBox.getHeight() ;414 node.style.left = scaledBox.left + "px"; 415 node.style.top = scaledBox.top + "px"; 416 node.style.width = scaledBox.getWidth() + "px"; 417 node.style.height = scaledBox.getHeight() + "px"; 418 418 419 419 node.coordorigin = scaledBox.left + " " + scaledBox.top; … … 531 531 var resolution = this.getResolution(); 532 532 533 node.style.left = ( geometry.x /resolution).toFixed() - radius;534 node.style.top = ( geometry.y /resolution).toFixed() - radius;533 node.style.left = ((geometry.x /resolution).toFixed() - radius) + "px"; 534 node.style.top = ((geometry.y /resolution).toFixed() - radius) + "px"; 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 }, … … 639 639 var resolution = this.getResolution(); 640 640 641 node.style.left = geometry.x/resolution ;642 node.style.top = geometry.y/resolution ;643 node.style.width = geometry.width/resolution ;644 node.style.height = geometry.height/resolution ;641 node.style.left = geometry.x/resolution + "px"; 642 node.style.top = geometry.y/resolution + "px"; 643 node.style.width = geometry.width/resolution + "px"; 644 node.style.height = geometry.height/resolution + "px"; 645 645 }, 646 646
