Update VML.js to work in IE standards mode; also, update editingtoolbar.html to trigger the (now fixed) bug to make sure it doesn't come back. Fixes #564.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-04-01 23:22:49 +00:00
parent 175f07c403
commit 79c3ed7d05
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
@@ -24,6 +25,7 @@
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayer(vlayer);
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);

View File

@@ -29,8 +29,8 @@ OpenLayers.Renderer.VML.prototype =
}
document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
var style = document.createStyleSheet();
style.addRule('v\\:*', "behavior: url(#default#VML);");
style.addRule('v\\:*', "behavior: url(#default#VML); " +
"position: relative; display: inline-block;");
OpenLayers.Renderer.Elements.prototype.initialize.apply(this,
arguments);
},
@@ -80,8 +80,8 @@ OpenLayers.Renderer.VML.prototype =
this.rendererRoot.style.width = this.size.w;
this.rendererRoot.style.height = this.size.h;
this.root.style.width = this.size.w;
this.root.style.height = this.size.h
this.root.style.width = "100%";
this.root.style.height = "100%";
},
/**