OpenLayers OpenLayers

Changeset 4036

Show
Ignore:
Timestamp:
08/24/07 18:33:28 (1 year ago)
Author:
crschmidt
Message:

EditingToolbar does not display first segment in VML until 3 points added.
This fixes the bounds, which fixes the vml behavior in IE. (Closes #666.)
Hooray, no more devil ticket.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Handler/Path.js

    r3984 r4036  
    113113        this.line.geometry.components[index].x = this.point.geometry.x; 
    114114        this.line.geometry.components[index].y = this.point.geometry.y; 
     115        this.line.geometry.components[index].clearBounds(); 
    115116    }, 
    116117     
  • trunk/openlayers/lib/OpenLayers/Handler/Point.js

    r3984 r4036  
    237237            this.point.geometry.x = lonlat.lon; 
    238238            this.point.geometry.y = lonlat.lat; 
     239            this.point.geometry.clearBounds(); 
    239240            this.drawFeature(); 
    240241        } 
  • trunk/openlayers/tests/list-tests.html

    r3994 r4036  
    7474    <li>test_Handler.html</li> 
    7575    <li>Handler/test_Drag.html</li> 
     76    <li>Handler/test_Point.html</li> 
     77    <li>Handler/test_Path.html</li> 
    7678    <li>test_Map.html</li> 
    7779</ul>