Opened 13 years ago
Closed 13 years ago
#5785 closed defect (fixed)
dojox.gfx, ie6 and setFill
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | DojoX GFX | Version: | 1.0 |
Keywords: | setfill | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
There is a problem with the actual setFill-method of the vml.js in the package dojox.gfx. First it cannot fill linear because of a little assign-bug and second the setFill method has a problem, when an element was filled with a gradient (linear, radial, ...) and afterwards filled with just a color. Attached you'll find a patch, that solves these two issues.
Here is a testcase, that is showing both problems:
dojo.require("dojox.gfx"); var surface = dojox.gfx.createSurface("myBox", 100, 100); var myRect = surface.createRect(); myRect.setFill("red"); dojo.connect(myRect.rawNode, "onmouseover", function() { myRect.setFill({type: "linear", x1: 0, y1: 0, x2: 100, y2: 100, colors: [{offset: 0, color: "black"}, {offset: 1, color: "white"}]}); }); dojo.connect(myRect.rawNode, "onmouseout", function() { myRect.setFill("blue"); });
Attachments (1)
Change History (3)
Changed 13 years ago by
Attachment: | vml_js.patch added |
---|
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Thank you for finding a bug, and the constructive approach to it. While patch is rather trivial, please file a CLA (http://dojotoolkit.org/cla), and mark this ticket with [patch] and [cla].