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:
@@ -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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
|
|
||||||
vlayer = new OpenLayers.Layer.Vector( "Editable" );
|
vlayer = new OpenLayers.Layer.Vector( "Editable" );
|
||||||
map.addLayer(vlayer);
|
map.addLayer(vlayer);
|
||||||
|
map.addControl(new OpenLayers.Control.PanZoomBar());
|
||||||
map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));
|
map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));
|
||||||
|
|
||||||
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ OpenLayers.Renderer.VML.prototype =
|
|||||||
}
|
}
|
||||||
document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
|
document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
|
||||||
var style = document.createStyleSheet();
|
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,
|
OpenLayers.Renderer.Elements.prototype.initialize.apply(this,
|
||||||
arguments);
|
arguments);
|
||||||
},
|
},
|
||||||
@@ -80,8 +80,8 @@ OpenLayers.Renderer.VML.prototype =
|
|||||||
this.rendererRoot.style.width = this.size.w;
|
this.rendererRoot.style.width = this.size.w;
|
||||||
this.rendererRoot.style.height = this.size.h;
|
this.rendererRoot.style.height = this.size.h;
|
||||||
|
|
||||||
this.root.style.width = this.size.w;
|
this.root.style.width = "100%";
|
||||||
this.root.style.height = this.size.h
|
this.root.style.height = "100%";
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user