[OpenLayers-Commits] r2959 - in trunk/openlayers: examples lib/OpenLayers/Renderer

commits at openlayers.org commits at openlayers.org
Sun Apr 1 19:22:56 EDT 2007


Author: sderle
Date: 2007-04-01 19:22:49 -0400 (Sun, 01 Apr 2007)
New Revision: 2959

Modified:
   trunk/openlayers/examples/editingtoolbar.html
   trunk/openlayers/lib/OpenLayers/Renderer/VML.js
Log:
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.


Modified: trunk/openlayers/examples/editingtoolbar.html
===================================================================
--- trunk/openlayers/examples/editingtoolbar.html	2007-04-01 22:29:25 UTC (rev 2958)
+++ trunk/openlayers/examples/editingtoolbar.html	2007-04-01 23:22:49 UTC (rev 2959)
@@ -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);

Modified: trunk/openlayers/lib/OpenLayers/Renderer/VML.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Renderer/VML.js	2007-04-01 22:29:25 UTC (rev 2958)
+++ trunk/openlayers/lib/OpenLayers/Renderer/VML.js	2007-04-01 23:22:49 UTC (rev 2959)
@@ -29,8 +29,8 @@
         } 
         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 @@
         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%";
     },
 
     /** 



More information about the Commits mailing list