OpenLayers OpenLayers

Ticket #564: 564.patch

File 564.patch, 1.8 kB (added by sderle, 2 years ago)

changes to VML.js to make it work in IE standards mode; also, change to editingtoolbar.html to exercise the (now fixed) bug

  • lib/OpenLayers/Renderer/VML.js

    old new  
    2929        }  
    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); 
    3636    }, 
     
    8080        this.rendererRoot.style.width = this.size.w; 
    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 
    8787    /**  
  • examples/editingtoolbar.html

    old new  
     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> 
    34    <style type="text/css"> 
     
    2425 
    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             
    2931            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);