Adding px units where appropriate in style properties. Thanks Wally Atkins for the original patch. r=me (closes #1582)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-06-10 20:39:03 +00:00
parent 25af1e45cc
commit a98aacedd2
3 changed files with 27 additions and 27 deletions

View File

@@ -95,8 +95,8 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class(
// create div and set to same size as map
var veDiv = OpenLayers.Util.createDiv(this.name);
var sz = this.map.getSize();
veDiv.style.width = sz.w;
veDiv.style.height = sz.h;
veDiv.style.width = sz.w + "px";
veDiv.style.height = sz.h + "px";
this.div.appendChild(veDiv);
try { // crash prevention