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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-08-24 22:33:28 +00:00
parent c2c821e4c2
commit 0d2f10ad5c
3 changed files with 4 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, {
var index = this.line.geometry.components.length - 1; var index = this.line.geometry.components.length - 1;
this.line.geometry.components[index].x = this.point.geometry.x; this.line.geometry.components[index].x = this.point.geometry.x;
this.line.geometry.components[index].y = this.point.geometry.y; this.line.geometry.components[index].y = this.point.geometry.y;
this.line.geometry.components[index].clearBounds();
}, },
/** /**

View File

@@ -236,6 +236,7 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
var lonlat = this.map.getLonLatFromPixel(evt.xy); var lonlat = this.map.getLonLatFromPixel(evt.xy);
this.point.geometry.x = lonlat.lon; this.point.geometry.x = lonlat.lon;
this.point.geometry.y = lonlat.lat; this.point.geometry.y = lonlat.lat;
this.point.geometry.clearBounds();
this.drawFeature(); this.drawFeature();
} }
return true; return true;

View File

@@ -73,5 +73,7 @@
<li>Control/test_Scale.html</li> <li>Control/test_Scale.html</li>
<li>test_Handler.html</li> <li>test_Handler.html</li>
<li>Handler/test_Drag.html</li> <li>Handler/test_Drag.html</li>
<li>Handler/test_Point.html</li>
<li>Handler/test_Path.html</li>
<li>test_Map.html</li> <li>test_Map.html</li>
</ul> </ul>