From 35dc7ba8f03476d7a7be87d47a340b959cee7861 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 19 Jun 2006 17:19:36 +0000 Subject: [PATCH] In XHTML Transitional, using unitless values in Javascript to set width, height, etc. doesn't work. This change should make it so that openlayers works under XHTML 1.0 transitional in firefox and safari. git-svn-id: http://svn.openlayers.org/trunk/openlayers@617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index dddb2963e6..f0f1af3f3e 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -660,8 +660,8 @@ OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position, element.id = id; } if (px) { - element.style.left = px.x; - element.style.top = px.y; + element.style.left = px.x + "px"; + element.style.top = px.y + "px"; } if (sz) { element.style.width = sz.w + "px";