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:
@@ -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