#3657 closed defect (wontfix)
dojox.gfx VML renderer doesn't clip on surface's boundaries
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | gfx (svg+vml) | Version: | 0.9 |
Keywords: | dojox gfx vml | Cc: | |
Blocked By: | Blocking: |
Description
dojox.gfx doesn't clip shapes which have some negative or overflowing coordinates. Look at the "matrix operations" part of test page in IE. The left side of the rects must be hidden, because they're in negative y-coordinate. But in FireFox?, using SVG, has cliped them properly. I require this problem solved immediately.
Change History (3)
comment:1 Changed 14 years ago by
Milestone: | 0.9 → 1.0 |
---|---|
severity: | critical → normal |
Status: | new → assigned |
Summary: | dojox.gfx has a serious bug in VML → dojox.gfx VML renderer doesn't clip on surface's boundaries |
comment:2 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
The only practical way to clip is to use the "clip" property of the parent. But in order to be clipped the parent should be absolutely positioned, which is not acceptable in many cases.
I mark this ticket as "wontfix" because it is simpler to do it in the user's code like that:
var parent = dojo.byId("test"); parent.style.position = "absolute"; parent.style.clip = "rect(0 500 500 0)"; var surface = dojox.gfx.createSurface(parent, 500, 500); // continue adding children to the surface
This code will work for both SVG and VML.
The requirement to position the parent as "absolute" is way too strong to enforce it on dojox.gfx level.
All in all I'll keep it open --- I will try to find a way to fix it during the next bug-fixing marathon. I am changing its title, and its severity. BTW, there is no guarantee that this problem is solvable.