Opened 15 years ago

Closed 15 years ago

#2438 closed defect (invalid)

changed dojo.gfx image shape from HTML to an actual VML shape

Reported by: Aaron Staves Owned by: Eugene Lazutkin
Priority: high Milestone:
Component: gfx (svg+vml) Version: 0.4.1
Keywords: vml image gfx Cc:
Blocked By: Blocking:


The VML image shape is currently an HTML element within a <v:group> element. This causes the image to function differently than expected. A VML surface seems to clip shapes exceeding the boundaries automatically; however, when HTML is introduced, it seems to turn clipping off. This can be viewed here: Instead of clipping the shape that exceeds the boundaries, it scales the VML surface to fit the new shape. As a result, any existing shapes are also scaled, which makes the image appear smaller.

This patch makes the dojo.gfx Image an acutal <v:image> object, which seems to fix all of the problems discussed above. A test/example can be viewed here:

Attachments (1)

vml.js.patch (1.9 KB) - added by Aaron Staves 15 years ago.
Patch for image fix

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by Aaron Staves

Attachment: vml.js.patch added

Patch for image fix

comment:1 Changed 15 years ago by Eugene Lazutkin

Resolution: invalid
Status: newclosed

Rejected for now due to performance issues. I'll experiment with clip() to implement require functionality.

Note: See TracTickets for help on using tickets.