OpenLayers OpenLayers

Changeset 2959

Show
Ignore:
Timestamp:
04/01/07 19:22:49 (2 years ago)
Author:
sderle
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/editingtoolbar.html

    r2803 r2959  
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    12<html xmlns="http://www.w3.org/1999/xhtml"> 
    23  <head> 
     
    2526            vlayer = new OpenLayers.Layer.Vector( "Editable" ); 
    2627            map.addLayer(vlayer); 
     28            map.addControl(new OpenLayers.Control.PanZoomBar()); 
    2729            map.addControl(new OpenLayers.Control.EditingToolbar(vlayer)); 
    2830             
  • trunk/openlayers/lib/OpenLayers/Renderer/VML.js

    r2943 r2959  
    3030        document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); 
    3131        var style = document.createStyleSheet(); 
    32         style.addRule('v\\:*', "behavior: url(#default#VML);"); 
    33  
     32        style.addRule('v\\:*', "behavior: url(#default#VML); " + 
     33                               "position: relative; display: inline-block;"); 
    3434        OpenLayers.Renderer.Elements.prototype.initialize.apply(this,  
    3535                                                                arguments); 
     
    8181        this.rendererRoot.style.height = this.size.h; 
    8282 
    83         this.root.style.width = this.size.w
    84         this.root.style.height = this.size.h 
     83        this.root.style.width = "100%"
     84        this.root.style.height = "100%"; 
    8585    }, 
    8686