Opened 11 years ago
Closed 11 years ago
#13199 closed defect (duplicate)
In IE8/VML, Event handlers set on a Rect are lost after a setShape() call.
Reported by: | Patrick Ruzand | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX GFX | Version: | 1.5 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
Under IE8 with the VML renderer, event handlers connected to a Rect via rect.connect() are lost after the rect shape is updated via setShape(). The following sequence illustrates the problem:
var rect = surface.createRect();
rect.connect('onmousedown', function(){...});
and later:
rect.setShape(newShape)
The problem is that under IE8, Rect.setShape replaces the shape rawNode by a new one (seems to workaround a round corner vml bug). So all connections done on the previous rawNode are lost.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
testcase