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
This commit is contained in:
1 parent
e582436f55
commit
35dc7ba8f0
1 file changed
+2
-2
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user