Ticket #5785 (closed defect: fixed)
dojox.gfx, ie6 and setFill
| Reported by: | guest | Owned by: | elazutkin |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | DojoX GFX | Version: | 1.0 |
| Severity: | normal | Keywords: | setfill |
| Cc: | tobias@… |
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
Change History
Note: See
TracTickets for help on using
tickets.