Opened 12 years ago

Closed 12 years ago

#3144 closed defect (fixed)

VML's image may behave incorrectly when used alone in a picture

Reported by: Eugene Lazutkin Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9
Component: DojoX GFX Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Sometimes VML's image "picks up" transformation matrix of other elements. See attached test case.

Attachments (1)

test_image_bug.html (2.0 KB) - added by Eugene Lazutkin 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by Eugene Lazutkin

Attachment: test_image_bug.html added

comment:1 Changed 12 years ago by Eugene Lazutkin

Status: newassigned

comment:2 Changed 12 years ago by Eugene Lazutkin

Milestone: 0.9beta0.9

This defect is subtle, and doesn't change the API --- I am retargeting it to 0.9.

comment:3 Changed 12 years ago by Eugene Lazutkin

Summary: VML's image may behave incorrectly while used alone in a pictureVML's image may behave incorrectly when used alone in a picture

comment:4 Changed 12 years ago by dylan

Milestone: 0.91.0

comment:5 Changed 12 years ago by Eugene Lazutkin

Milestone: 1.00.9

comment:6 Changed 12 years ago by Eugene Lazutkin

Component: gfx (svg+vml)DojoX GFX

comment:7 Changed 12 years ago by Eugene Lazutkin

Apparently the VML group has a notion of the origin, which is the minimal coordinate on both axis. It has two repercussions:

  1. If we move the left-most top-most object, the image shape will be moved as well because the origin is changed now.
  2. If we move an object in the negative direction (beyond 0), the whole picture will move in the positive direction to compensate for the changed origin.

One way to get rid of #1 is to abandon VML groups completely and support them only on virtual level. We do it now, but this is one step beyond that.

I have no ideas on how to fix #2. :-(

comment:8 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [10185]) Added a background rectangle (similar to the surface). Fixes #3144.

Note: See TracTickets for help on using tickets.